> For the complete documentation index, see [llms.txt](https://docs.rowsncolumns.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rowsncolumns.app/configuration/features/formula-protection.md).

# Formula protection

Enabling formula protection mode prevents users from viewing, copying or editing formulas on the Spreadsheet

This is useful if you want to share a Spreadsheet with the team, but not give them access to formulas due to confidential reasons

To enable protection mode, set `protectFormulas={true}`

```tsx
import { SpreadsheetProvider, CanvasGrid } from "@rowsncolumns/spreadsheet";
import { useSpreadsheetState } from "@rowsncolumns/spreadsheet-state";

const MySpreadsheet = () => {
  const { getCellData } = useSpreadsheetState()

  
  return (
    <CanvasGrid
      protectFormulas={true}
    />
  );
};

const App = () => (
  <SpreadsheetProvider>
    <MySpreadsheet />
  </SpreadsheetProvider>
);
```
