Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I automatically enter an Excel password?

Status
Not open for further replies.

buddyrich2

Technical User
Apr 12, 2006
87
US
I am writing a script to automatically import an Excel spreadsheet into a VFP table but it is password protected.

Can anyone tell me how to automatically enter the password?

Thanks in advance.
 
First five parameters of the Workbooks.Open method:
filename, updatelinks, readonly, format, password

so oWorkBooks.Open("Filename.xls",,,,"password") should do you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top