Password Protection

  • Thread starter Thread starter Gary Cobden
  • Start date Start date
G

Gary Cobden

I need to open and manipulate password protected Excel Spreadsheets
from within MS Access

Is it possible to do this programatically, or will the spreadsheet
always open - like my routine does at present - with the password
prompt?

Thanks
 
Try something like

XL.Workbooks.Open Filename:="C:\temp\test.xls",
Password:="thePassword"

where XL is your reference to the Excel Application object.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top