accessrookie2
Registered User.
- Local time
- Yesterday, 18:11
- Joined
- Jul 23, 2009
- Messages
- 16
Hello, I need to check it a workbook is protected before it opens.
 
Right now I basically have this:
 
Set xlApp = CreateObject("Excel.Application")
Set xlWb = xlApp.Workbooks.Open(WbPath)
 
Wbpath is the path to the excel file. As soon as it hits the second line of code it opens the file and asks me for a password. I need to check if it is protected before it opens so I can display a message.
 
Thanks
 Right now I basically have this:
Set xlApp = CreateObject("Excel.Application")
Set xlWb = xlApp.Workbooks.Open(WbPath)
Wbpath is the path to the excel file. As soon as it hits the second line of code it opens the file and asks me for a password. I need to check if it is protected before it opens so I can display a message.
Thanks
 
	 
 
		