MyFlight
Technical User
- Feb 4, 2002
- 193
Help,
I need to Open a Password Protected Workbook.
It has both Read-Only Password (Password1234) and Modify-Password (Password5678), enabled.
Everytime I try to open it it always opens as READ-ONLY.
Here is the Script I have. Any Help would be appreciated.
Sub MainMacro()
'
'
Dim filename As String
Dim WB As Workbook
filename = "\\Passwords\Passwords.xls"
Set WB = Workbooks.Open(filename, , False, , "Password1234", "Password5678"
Windows("IBM Passwords.xls"
.Activate
ActiveWindow.WindowState = xlMaximized
End Sub
I need to Open a Password Protected Workbook.
It has both Read-Only Password (Password1234) and Modify-Password (Password5678), enabled.
Everytime I try to open it it always opens as READ-ONLY.
Here is the Script I have. Any Help would be appreciated.
Sub MainMacro()
'
'
Dim filename As String
Dim WB As Workbook
filename = "\\Passwords\Passwords.xls"
Set WB = Workbooks.Open(filename, , False, , "Password1234", "Password5678"
Windows("IBM Passwords.xls"
ActiveWindow.WindowState = xlMaximized
End Sub