View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
BrianB BrianB is offline
external usenet poster
 
Posts: 1
Default Testing an unopened (or opened) worksheet for VBA Project protected


1. If your code "just hangs" without producing a message about the
password you might be able to use On Error.

2. A workbook which is not protected will still open if a non-existent
password is supplied. Perhaps you could put the password in your code
anyway.


--
BrianB


------------------------------------------------------------------------
BrianB's Profile: http://www.excelforum.com/member.php...info&userid=55
View this thread: http://www.excelforum.com/showthread...hreadid=386314