Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tp
 
Posts: n/a
Default UpdateLink password protected files, VBA for Excel,

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   Report Post  
Bill Manville
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to automate opening a password protected excel file? e.g. a .xls that has a password set in the security tab. Daniel Excel Worksheet Functions 0 June 23rd 05 11:56 PM
Link to password protected workbook dunnotar02 Excel Discussion (Misc queries) 1 March 22nd 05 06:44 PM
Linking to a Password Protected Document in Excel 2000 Andrew Excel Discussion (Misc queries) 2 February 15th 05 01:06 AM
bypass password when update linking of password protected file Yan Excel Discussion (Misc queries) 1 February 7th 05 11:29 PM
Password protected files Forgotten password problem! Excel Discussion (Misc queries) 4 December 20th 04 12:28 PM


All times are GMT +1. The time now is 11:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"