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

One way:

Public Function IsProtected(ByRef wsSheet As Worksheet) As Boolean
IsProtected = wsSheet.ProtectContents
End Function

Call as, for example,


If IsProtected(ActiveSheet) Then ActiveSheet.Unprotect



In article ,
"Sheldon" wrote:

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
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 Protection [email protected] Excel Discussion (Misc queries) 3 June 16th 05 11:29 PM
worksheet protection Bob L. Excel Programming 4 August 20th 03 11:24 PM
worksheet protection losmac Excel Programming 0 August 20th 03 10:01 PM


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