I ran into the same problem yesterday.
The following code seems to work except for sheets that have chart
objects in them.
Sheets("MySheetName").Protect UserInterfaceOnly:=True
I have found that additional arguments can be added like this:
Sheets("MySheetName").Protect UserInterfaceOnly:=True,
DrawingObjects:=False
I do not fully understand the behavior of these arguments.
I hope that this helps.
--
mgandrud
------------------------------------------------------------------------
mgandrud's Profile: 1541
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=176533
Microsoft Office Help