Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Worksheet protection

Hi Sheldon,

You could use a function like:

Function IsProtected(Optional ws As Worksheet) As Boolean
If ws Is Nothing Then Set ws = Activesheet
If ws.ProtectScenarios Or _
ws.ProtectDrawingObjects Or _
ws.ProtectContents Then
IsProtected = True
End If
End Function

---
Regards,
Norman



"Sheldon" wrote in message
...
How do I question in code whether a worksheet is protected or not?

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
worksheet protection Peter Excel Discussion (Misc queries) 4 April 11th 08 01:36 PM
Worksheet protection adehart Excel Worksheet Functions 1 October 16th 06 02:57 PM
Cell Protection vs. Worksheet Protection kmwhitt Excel Discussion (Misc queries) 4 September 24th 06 02:37 AM
Worksheet protection is gone and only wokbook protection can be se Eric C. Excel Discussion (Misc queries) 4 May 2nd 06 04:50 PM
Worksheet tab protection Xlim Excel Discussion (Misc queries) 2 January 16th 05 01:34 PM


All times are GMT +1. The time now is 05:04 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"