The followhyperlink opens the workbook for a website on our server. When the excel file opens, i need to supply the password. I then want to save it to my local computer with the same password.
Main Topics
Browse All TopicsI am trying to open a file from a website. Once the excel file is open, i need to input the password. I have posted my code below. Can anyone tell me where to put the password? Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
it is the opening that is the problem.
I cant see any way to supply the password other than SendKeys, which is often a problem as it only pastes keystrokes to the active window that can change.
the code attached enters the string mypassword followed by enter key into the active window, which is hopefully the password request window for the newly loaded workbook.
i cant test this unfortunately.
i suspect the FollowHyperLink will always want to open the file.
You could FTP the files down to your local computer. using either a 3rd party api or shelling to an command line app.
see http://www.diamondcs.com.a
Business Accounts
Answer for Membership
by: robberbaronPosted on 2009-09-07 at 04:10:07ID: 25274181
Clarification .... does the workbook need a password to open it form the web ? Is that the password you are trying to use ?
Prior to saving locally ?
If so, the FollowHyperlink does not have any available options for that.