Hi everyone! I'm looking for a way to check if an Excel file is password protected. If so, VBA should open it with the "default" office password. This should happen anytime a file is opened by any means (i.e. from Windows Explorer, and not just through another piece of code in another Excel)
I tried using CExcelEvents to monitor when a file is opened, and then execute a specific code when a file is opened. Unfortunately, this event is only triggered once the password has already been entered and the file is open. I would like to trigger code BEFORE the file is actually opened, so that I could then use the Workbook.Open method to open the file with a specific password.
Any help appreciated!
I tried using CExcelEvents to monitor when a file is opened, and then execute a specific code when a file is opened. Unfortunately, this event is only triggered once the password has already been entered and the file is open. I would like to trigger code BEFORE the file is actually opened, so that I could then use the Workbook.Open method to open the file with a specific password.
Any help appreciated!