Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Worksheet Protection Question

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!
--
Jack Waller
<<
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Worksheet Protection Question

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

"Jack" wrote:

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!
--
Jack Waller
<<

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Worksheet Protection Question Pat Excel Discussion (Misc queries) 1 February 4th 09 11:14 PM
Worksheet protection question Dominic Excel Discussion (Misc queries) 3 August 17th 07 07:46 PM
One more question on worksheet protection dd Excel Programming 9 May 22nd 07 06:59 PM
A Worksheet Protection Question PA New Users to Excel 1 December 8th 06 09:44 AM
Excel97 - Worksheet Protection Question Russell Plummer Excel Programming 2 February 18th 04 04:17 PM


All times are GMT +1. The time now is 02:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"