Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Password feature in command buttons

Hi

I would like to incorporate a password utility in my
command button. The purpose is to allow only authorized
users to activate the macro. I was thinking of a MsgBox
to popup and ask the user to enter a password and, if
correct, the macro will activate otherwise nothing should
happen.

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Password feature in command buttons

Sub test()
If InputBox("Password:") < "Brilliant" Then Exit Sub
MsgBox "Code is running fine", vbInformation
End Sub

--
HTH. Best wishes Harald
Excel MVP
Followup to newsgroup only please

"Marvin Moore" skrev i melding
...
Hi

I would like to incorporate a password utility in my
command button. The purpose is to allow only authorized
users to activate the macro. I was thinking of a MsgBox
to popup and ask the user to enter a password and, if
correct, the macro will activate otherwise nothing should
happen.

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
Command Buttons Wilco Excel Discussion (Misc queries) 0 January 13th 11 10:35 AM
Command Buttons Hoyas07 Excel Discussion (Misc queries) 2 February 11th 08 03:42 PM
Can the Undo feature and/or command be turned off??? Sheri Excel Discussion (Misc queries) 1 October 11th 06 06:02 PM
Help with command buttons Danno Excel Worksheet Functions 1 October 7th 05 10:32 PM
command buttons Natalie Excel Worksheet Functions 1 March 7th 05 01:45 PM


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

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"