ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open file without Password (https://www.excelbanter.com/excel-programming/314704-open-file-without-password.html)

Steph[_3_]

Open file without Password
 
Hello. My users use a template that is housed on a shared network. Other
people that I don't want to access the file have access to the network
folder. So I thought I would send my users a workbook with a small macro in
it that would open the file from the network. This way I can "hide" the
template. But I wanted to also password protect the workbook, just in case.
Is there a way for my users to run my small "open the workbook" module, and
have them not be prompted for a password? ie include the password in the
code somehow? Thank you!



Frank Kabel

Open file without Password
 
workbooks.open filename:"test.xls", password:="your_password"

have a look at the workbooks.open method in the VBA help

"Steph" wrote:

Hello. My users use a template that is housed on a shared network. Other
people that I don't want to access the file have access to the network
folder. So I thought I would send my users a workbook with a small macro in
it that would open the file from the network. This way I can "hide" the
template. But I wanted to also password protect the workbook, just in case.
Is there a way for my users to run my small "open the workbook" module, and
have them not be prompted for a password? ie include the password in the
code somehow? Thank you!





All times are GMT +1. The time now is 05:29 PM.

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