Open a workbook with a password via macro - How to?

  • Thread starter Thread starter fishy
  • Start date Start date
F

fishy

Can anyone advise how I can open the following workbook via a macro:

Workbooks.Open Filename:= "\\server_route\tbl_processes.xls"

Password = XYZ
 
Hi,

Try this

Sub stantial()
Workbooks.Open "c:\mypath\book1.xls", Password:="abc"
End Sub

Mike
 

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