Hi All
I am hoping that someone can help me. I am attempting to open an excel file which needs a password at start up.
I have tried using the code below:
"Sub OpenWbWithPassword()
Application.DisplayAlerts = False
Workbooks.Open Filename:="S:\Site\Training Files\Training_Tracker\Template.xlsm", Password:="123"
Application.DisplayAlerts = True
End Sub"
When this code is ran I get a notification box titled password. This box details the file name and that the file is protected. The protection was added to the file by going through the save as option, selecting tools, general Options and entering the password in to the password to open box.
I have been searching for a while now and cant seem to find a way around the issue. Can any one please help with this.
Thank you in advance
Dominic
I am hoping that someone can help me. I am attempting to open an excel file which needs a password at start up.
I have tried using the code below:
"Sub OpenWbWithPassword()
Application.DisplayAlerts = False
Workbooks.Open Filename:="S:\Site\Training Files\Training_Tracker\Template.xlsm", Password:="123"
Application.DisplayAlerts = True
End Sub"
When this code is ran I get a notification box titled password. This box details the file name and that the file is protected. The protection was added to the file by going through the save as option, selecting tools, general Options and entering the password in to the password to open box.
I have been searching for a while now and cant seem to find a way around the issue. Can any one please help with this.
Thank you in advance
Dominic