Hello Experts,
I have the same question...Opening a workbook that's needs a password
first in order to open it. But this code still doesn't work. Any
ideas?
Workbooks.Open Filename:="C:\My Documents\File1.xls"
ActiveWorkbook.Unprotect "test"
I've tried no quotations, brackets, no brackets, around the password but
of no avail. The popup for the password still surfaces. And, I do have
the correct password.
I've even tried:
Dim Password as variant
Password = "test"
Workbooks.Open Filename:="C:\My Documents\File1.xls"
ActiveWorkbook.Unprotect Password
It still prompts me to enter the password manually to open the file.
Any ideas?
Thanks in advance,
Ricky