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