Dec 30, 2004 #1 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
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
Dec 30, 2004 1 #2 KenWright Technical User Mar 22, 2003 3,688 GB 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................. ---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission ---------------------------------------------------------------------------- Upvote 0 Downvote
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................. ---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission ----------------------------------------------------------------------------
Jan 10, 2005 Thread starter #3 rjm65 Technical User May 27, 2003 86 US Thank you, that's exactly what I was looking for! Raymond Upvote 0 Downvote
Jan 10, 2005 #4 KenWright Technical User Mar 22, 2003 3,688 GB You're welcome ---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission ---------------- Click here to help the tsunami victims ---------------- Upvote 0 Downvote
You're welcome ---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission ---------------- Click here to help the tsunami victims ----------------