Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Input Password to Open Linked Files

Hello Experts,
How do you write a code that will input the password to open the linked
file as the "Master file" tries to update?
For example:
1) While opening my "Master file", the prompt to Update linked files
pops up. If "Yes" is selected, then input the password "openA" to open
the linked file (File A).
2) On the next linked file (File B), input password "openB"

3) While opening my Master file, if Update linked files "No" is
selected, then end.

Your help is greatly appreciated.

Ricky

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Input Password to Open Linked Files

If you're writing code, then you're opening the workbooks via code, too???

(seems reasonable to me.)

Take another look at workbooks.open in VBA's help. You can specify the password
on that command.



Ricky Pang wrote:

Hello Experts,
How do you write a code that will input the password to open the linked
file as the "Master file" tries to update?
For example:
1) While opening my "Master file", the prompt to Update linked files
pops up. If "Yes" is selected, then input the password "openA" to open
the linked file (File A).
2) On the next linked file (File B), input password "openB"

3) While opening my Master file, if Update linked files "No" is
selected, then end.

Your help is greatly appreciated.

Ricky

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


--

Dave Peterson

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
ON OPEN VBA Code input incorrectly now excel sheet wont open mmartin New Users to Excel 1 February 16th 11 11:33 PM
Linked PDF files open briefly and then close Stella Rivera Excel Discussion (Misc queries) 2 January 27th 09 04:02 PM
Linked files, one is Password to Modify protected Mike The Newb Excel Discussion (Misc queries) 0 January 7th 08 09:48 PM
Input password or open the sheet as "Read only Pietro Excel Discussion (Misc queries) 0 October 8th 07 09:40 PM
Password box to remain open after wrong input Twanny Excel Discussion (Misc queries) 4 September 1st 05 09:29 PM


All times are GMT +1. The time now is 09:19 PM.

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"