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

Hi,

Is there a way (in code) to test if a workbook / sheet is protected, without
unprotecting it?

thanks
Tim


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Is workbook / sheet protected

Hi
directly from the vBA help:
If Worksheets("Sheet1").ProtectContents = True Then
MsgBox "The contents of Sheet1 are protected."
End If


--
Regards
Frank Kabel
Frankfurt, Germany

"Tim Marsden" schrieb im Newsbeitrag
...
Hi,

Is there a way (in code) to test if a workbook / sheet is protected,

without
unprotecting it?

thanks
Tim



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Is workbook / sheet protected

Hi Tim,

If you still have any concern on this issue, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

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
How to enable Copy and Paste when the sheet and workbook is protected Yuvraj Excel Discussion (Misc queries) 1 July 20th 09 04:24 PM
Cursor does not move on one sheet in protected workbook pseudo_pro Excel Worksheet Functions 2 December 13th 07 07:24 PM
Excel - unprotect certain cells in protected sheet/workbook ekonomija Excel Discussion (Misc queries) 3 November 21st 07 10:58 PM
Auto Filter - Protected sheet/workbook ronwill Excel Discussion (Misc queries) 3 January 10th 06 03:28 PM
VB Code does not work when sheet or workbook is protected novicevbaer[_5_] Excel Programming 1 August 25th 04 11:34 PM


All times are GMT +1. The time now is 10:10 AM.

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

About Us

"It's about Microsoft Excel"