Open password protected workbook.

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hello,

I set password for open workbook (only for write). Now I'm trying open this
workbook with macro run in another workbook. I thought its possible like
this:

Workbooks.Open Filename:="C:\tom.xls", Password:=tom

but it dosnt work. Can you help me?

Thanks in advance for your help

TOM
 
There is a Password parameter and a WriteResPassword parameter. Should not the password string be within double quotes?
 
Thanks this is good:

Workbooks.Open Filename:="C:\tom.xls", WriteResPassword :="tom"

TOM

AA2e72E said:
There is a Password parameter and a WriteResPassword parameter. Should
not the password string be within double quotes?
 
If you only need data from a protected workbook, I have
used this:
Workbooks.Open Filename:="C:\tom.xls", ReadOnly:=True
 

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