Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protection in macro ( Anybody can view my password in VB Sherees Excel Discussion (Misc queries) 2 January 24th 10 10:05 PM
PASSWORD REMOVAL I have the password to open the file and the password to modify the file now how to remove them LJ[_4_] Excel Programming 0 April 27th 06 03:18 AM
How to see macro code of a password protected macro without a password? Dmitry Kopnichev Excel Worksheet Functions 5 October 27th 05 09:57 AM
How to see macro code of a password protected macro without a password? Dmitry Kopnichev Excel Programming 5 October 27th 05 09:57 AM
Macro-password DJ Excel Programming 2 February 19th 04 02:38 PM


All times are GMT +1. The time now is 06:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"