Include password in formula that links to a protected excel file

G

Guest

I have a master spreadsheet that links to other spreadsheets with passwords.
I want to write the password in the formula that links to the other
spreadsheets in order to avoid entering the password manually each time when
prompt by excel for the passwords of my links.

Thanks, Pat.
 
G

Guest

You never said which password so i've assumed password to open.

Sub liminaladvertising()
Path = "C:\"
fname = "Testbook.xls"
Pass = "mypass"
Set mybook = Workbooks.Open(Path & fname, Password:=Pass)
End Sub

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top