Gerald Higgins
Well-known Member
- Joined
- Mar 26, 2007
- Messages
- 9,258
Hi all, thanks in advance for any help.
I've got some code which protects the worksheet using a password.
I want to allow users to be able to input and edit comments.
It doesn't really matter whether this is restricted to unlocked cells, or
whether they can do it over the entire worksheet.
I can do this manually, and my code works for everything EXCEPT allowing comments to be edited / inserted.
Any ideas what I should be doing differently ?
Here's what I have now...
This does everything I want it to do, EXCEPT allow comments to be edited.
I've tried shuffling things around, but it either does just the same, or prompts for a password unexpectedly.
From the macro recorder, I've worked out that DrawingObjects has to be set to False for comments, but it doesn't seem to work when I put it all together.
Using 2003....
I've got some code which protects the worksheet using a password.
I want to allow users to be able to input and edit comments.
It doesn't really matter whether this is restricted to unlocked cells, or
whether they can do it over the entire worksheet.
I can do this manually, and my code works for everything EXCEPT allowing comments to be edited / inserted.
Any ideas what I should be doing differently ?
Here's what I have now...
Code:
ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:=True
ActiveSheet.EnableSelection = xlUnlockedCells
ActiveSheet.EnableSelection = xlLockedCells
ActiveSheet.Protect "password"
This does everything I want it to do, EXCEPT allow comments to be edited.
I've tried shuffling things around, but it either does just the same, or prompts for a password unexpectedly.
From the macro recorder, I've worked out that DrawingObjects has to be set to False for comments, but it doesn't seem to work when I put it all together.
Using 2003....