Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Hello!
I have problem with VBA for EXCEL. In formulas there are links to other files . When it's open it normally connects with other files and everything is OK, but the other files are open protected with a password, so each time I have to put the password manually. There are MANY files so it is not very convenient. All files are protected with exactly the same password. I use such piece of code: ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LINKSOURCES How to write the code so that it can automatically use the same password during connecting to these files? Without opening them each time. Can anybody help me? thks. Adam |
#2
![]() |
|||
|
|||
![]()
If you will always get a password dialog when updating the links you
could try using SendKeys to send the password SendKeys "VerySecret~" ' the ~ is the Enter key ActiveWorkbook.UpdateLink .... Bill Manville MVP - Microsoft Excel, Oxford, England No email replies please - respond to newsgroup |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to automate opening a password protected excel file? e.g. a .xls that has a password set in the security tab. | Excel Worksheet Functions | |||
Link to password protected workbook | Excel Discussion (Misc queries) | |||
Linking to a Password Protected Document in Excel 2000 | Excel Discussion (Misc queries) | |||
bypass password when update linking of password protected file | Excel Discussion (Misc queries) | |||
Password protected files | Excel Discussion (Misc queries) |