ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Include password in formula that links to a protected excel file (https://www.excelbanter.com/excel-discussion-misc-queries/148030-include-password-formula-links-protected-excel-file.html)

PR2000

Include password in formula that links to a protected excel file
 
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.

Mike H

Include password in formula that links to a protected excel file
 
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

"PR2000" wrote:

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.



All times are GMT +1. The time now is 05:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com