ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Password for a macro? (https://www.excelbanter.com/excel-programming/434572-password-macro.html)

Cerberus

Password for a macro?
 
Is there a way to create a macro that will only work if you type in the
correct password? I have 6 sales guys using a spreadsheet to build sales
orders but would like a macro the sales manager uses to "approve" the order.

Any ideas on how to go about that? I appreciate any help you give in advance.

Thanks

Otto Moehrbach[_2_]

Password for a macro?
 
I would just place an InputBox statement at the beginning of the macro
asking for a password. If the password is correct, the remainder of the
macro runs. If not, the macro ends. You can insert a message box if you
wish to tell the user that the password is wrong. You would want to
password protect the code as John suggests. HTH Otto
"Cerberus" wrote in message
...
Is there a way to create a macro that will only work if you type in the
correct password? I have 6 sales guys using a spreadsheet to build sales
orders but would like a macro the sales manager uses to "approve" the
order.

Any ideas on how to go about that? I appreciate any help you give in
advance.

Thanks





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

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