Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Unprotect/.Protect Properties 1

Status
Not open for further replies.

rjm65

Technical User
May 27, 2003
86
US
When using the following:

ActiveSheet.Protect Password:="my password"

Is there someway to set it up so that only unlocked cells can be selected?

Thanks,
Raymond
 
Something along these lines simply recorded from Excel 2003

Sub Protect()

ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
ActiveSheet.EnableSelection = xlUnlockedCells
End Sub

I think this option only came in with Excel XP though.

Regards
Ken.................

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]

----------------------------------------------------------------------------
 
Thank you, that's exactly what I was looking for!

Raymond
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top