View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Hakyab Hakyab is offline
external usenet poster
 
Posts: 21
Default testing for password protection

Is there a way to check whether a workbook requires a password to open, prior
to opening the workbook?

What I want to do is to capture the password as the user enters it so I can
use the password for subsequent workbooks.open statements. I thought that my
module will prompt for the password, but I am not sure how this will behave
if there is no password to begin with.

Any help is appreciated, thanks.