I have seen this posted before but I can't seem to find a solution that works so maybe I'm doing it wrong. I have a master workbook that links to 17 password protected files and summarizes the data. When I open the master, I'm prompted to enter a password for every linked file. The password is the same for all. I tried a couple of different VBA codes but I still have the issue upon opening. I want the links to be updated but I don't want to have to enter a password 17 times!
Here's the one I thought had the most promise but isn't working. Can anybody help?
Private Sub Workbook_Open()
Dim PWord As String
PWord = "password"
SendKeys PWord & "{Enter}"
ActiveWorkbook.UpdateLink Name:="filename.xlsm", Type:=xlExcelLinks
End Sub
Bookmarks