Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with sheet protection

I can answer my own question - sorry everyone - just seen a typing error in
the last line. Engage brain before selecting 'post' !!

"PigzleFly" wrote in message
...
I wanted to toggle sheet protection off and on, but when using the

following
code

ActiveSheet.Protect DrawingObjects:=True, Contents:=True,

Scenarios:=True
ActiveSheet.EnableSelection = x1UnlockedCells

which I gleaned from a recorded macro. I still end up with a protected

sheet
that allows access to locked cells. What am I missing?

Sorry if this is a bit simple, but just starting with VBA

Thanks!







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
Excel Data Protection Best Practice: AKA: Real Sheet Protection Mushman(Woof!)[_2_] Excel Discussion (Misc queries) 4 December 30th 09 01:20 AM
Excel Data Protection- AKA: Sheet/Macro Password Protection Mushman(Woof!) Setting up and Configuration of Excel 0 December 29th 09 06:50 AM
Q about sheet protection TheMilkGuy Excel Discussion (Misc queries) 2 July 4th 09 04:52 PM
Sheet Protection wally Excel Worksheet Functions 8 May 21st 06 09:28 PM
Sheet Protection seezzell Excel Worksheet Functions 2 October 15th 05 12:57 AM


All times are GMT +1. The time now is 03:56 PM.

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

About Us

"It's about Microsoft Excel"