View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
koops2121 via OfficeKB.com koops2121 via OfficeKB.com is offline
external usenet poster
 
Posts: 4
Default Skip past Password Protected Excel file

Sorta yes.

I do this:

Set xApp = CreateObject("Excel.Application")
Set xBook = xApp.Workbooks.Open(objFile.Path)

If I then do xBook.HasPassword = True, it's too late and I'm already stuck at
the prompt asking for a password from the Open command. Maybe I'm doing this
wrong.

Thanks,

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200710/1