Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Is worksheet protected?

How to detect (VBA) is worksheet protected or it is not?

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Is worksheet protected?

Hi
try
If Worksheets("Sheet1").ProtectContents Then
MsgBox "Sheet1 is protected."
End If


--
Regards
Frank Kabel
Frankfurt, Germany


Kolmyk AE wrote:
How to detect (VBA) is worksheet protected or it is not?

Thank you.

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
Edit text format in non-protected cells in protected worksheet Bonnie Excel Discussion (Misc queries) 2 April 19th 08 04:48 PM
Protected Worksheet Greg Excel Discussion (Misc queries) 0 October 5th 07 05:38 PM
Protected worksheet baseballmm Excel Worksheet Functions 1 June 4th 07 11:59 PM
Protected worksheet Michael Excel Discussion (Misc queries) 0 November 30th 06 10:32 PM
Copying a worksheet witrh protected cells to a new worksheet John Excel Worksheet Functions 2 February 1st 06 02:19 PM


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