View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
DJB[_2_] DJB[_2_] is offline
external usenet poster
 
Posts: 1
Default Does a password exist...?


Hi everyone

I am using these two lines of code to determine whether or not workbook
protection or worksheet protection has been turned on.

If ActiveWorkbook.ProtectStructure = True Then ...
If ActiveSheet.ProtectContents = True Then ...

this works fine,but I would like to know of it is possible to detect if
either of these methods of protection, if being used, are password
protected. I am a bit stumped here.

Thanks for any advice.

DJB


--
DJB
------------------------------------------------------------------------
DJB's Profile: http://www.excelforum.com/member.php...o&userid=21221
View this thread: http://www.excelforum.com/showthread...hreadid=375003