ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open password protected workbook. (https://www.excelbanter.com/excel-programming/295280-open-password-protected-workbook.html)

Tom

Open password protected workbook.
 
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



AA2e72E[_2_]

Open password protected workbook.
 
There is a Password parameter and a WriteResPassword parameter. Should not the password string be within double quotes?

Tom

Open password protected workbook.
 
Thanks this is good:

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

TOM

"AA2e72E" píše v diskusním příspěvku
...
There is a Password parameter and a WriteResPassword parameter. Should

not the password string be within double quotes?



PCC

Open password protected workbook.
 
If you only need data from a protected workbook, I have
used this:
Workbooks.Open Filename:="C:\tom.xls", ReadOnly:=True
-----Original Message-----
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


.



All times are GMT +1. The time now is 03:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com