Include that option (to edit objects) in the code that protects the worksheet.
I'm not sure I understand why protecting the sheet in code would make a
difference.
CraigKer wrote:
I am using VB to protect a sheet in an excel workbook. Because I use
grouping/outlining within the sheet I have to use VB to protect the sheet.
However, when I protect the sheet I cannot add comments to the unlocked
cells. If I was not using VB to protect I would "allow users to edit
objects" when protecting the sheet and then comments could be added. How can
I fix this in VB?
--
Dave Peterson