Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Attach password to Button?
Seems like the simplest thing to do, but I can't find the first Google
result. I think all the results about protection are clogging up any that might help me. I just want the user to be prompted for a password before a certain macro runs. Any suggestions welcome. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Attach password to Button?
Mike, Try something like:
Sub MyMacro() Dim pw as String pw=inputbox("Enter password") Select Case pw Case "abcd","wxyz" 'execute your macro code Case else Msgbox "Invalid password" Exit Sub End Select End Sub James mike wrote: Seems like the simplest thing to do, but I can't find the first Google result. I think all the results about protection are clogging up any that might help me. I just want the user to be prompted for a password before a certain macro runs. Any suggestions welcome. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Attach password to Button?
Slick. Thanks.
On Oct 16, 3:35 pm, "Zone" wrote: Mike, Try something like: Sub MyMacro() Dim pw as String pw=inputbox("Enter password") Select Case pw Case "abcd","wxyz" 'execute your macro code Case else Msgbox "Invalid password" Exit Sub End Select End Sub James mike wrote: Seems like the simplest thing to do, but I can't find the first Google result. I think all the results about protection are clogging up any that might help me. I just want the user to be prompted for a password before a certain macro runs. Any suggestions welcome.- Hide quoted text -- Show quoted text - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Attach button disabled | Excel Discussion (Misc queries) | |||
Mailto / Attach... Button to do so? | Excel Programming | |||
Mailto / Attach... Button to do so? | Excel Programming | |||
Mailto / Attach... Button to do so? | Excel Programming | |||
Mailto / Attach... Button to do so? | Excel Programming |