0

How can I set all the cells in the notebook not editable? I don't want that a user can change phrases and letters.

Ale1794
  • 525
  • 3
  • 10
  • Lookup Editable, Deployed etc. Maybe even CDFDeploy. – Kuba Jun 06 '17 at 13:31
  • @Kuba I tried this at the beninning of the notebook, SetOptions[NotebookObject[EvaluationNotebook[]], Deployed -> True] , but it didn't work. – Ale1794 Jun 06 '17 at 13:43
  • Strip NotebookObject it is misused. EvaluationNotebook[] is enough. – Kuba Jun 06 '17 at 13:45
  • @Kuba Like that works, but using that, I can't see anyone of the outputs of my functions. – Ale1794 Jun 06 '17 at 13:50
  • You mean you can't evaluate cells? Why didn't you start with Editable then? – Kuba Jun 06 '17 at 13:51
  • Module[{},nb =EvaluationNotebook[]; FrontEndExecute[FrontEndToken["SelectAll"]]; SetOptions[NotebookSelection[nb], Deletable -> False,Editable -> False];];

    I wrote this and seems working

    – Ale1794 Jun 06 '17 at 14:04
  • @Ale1794 If you found a solution, you can post it as an answer, self-answering is encouraged here. :) – Alexey Popkov Jun 06 '17 at 15:23

0 Answers0