Worksheet Protection Question


J

Jack

I'd like to protect a worksheet so that all Locked cells are unselectable yet
the user will have the ability to insert a picture when an unlocked cell is
selected. Basically, the top 12 rows are locked and the remaining cells are
unlocked.

Using the following:

ActiveSheet.Protect Password:=MyPassword, Contents:=True,
DrawingObjects:=False, UserInterfaceOnly:=True

does exacly what I need when running in Excel 2007.

However, the same code in Excel 2003 & 2002 doesn't allow for inserting a
picture via the Insert Picture From File command. I've tried every
possibility I could think of for the Protect method, however, it is not until
I set Contents:=False that I find the Insert Picture From File is enabled. Of
course at this point, all the Locked cells are now essentially unlocked.

My current solution is to set Contents to True for Excel 2007 and to False
for all earlier versions. Needlesstosay, I'd like to find a better solution.

Any suggestions?

Thanks!
 
Ad

Advertisements

M

MWhaley

When you in the worksheet and you select protect worksheet, their is a list
of options that will allow the user to do or not to do, select edit objects
or any of the other ones that you desire. Hope this works for you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top