Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a button with a macro linked that Hide or Unhide other worksheets. I
like to protect that button with a password, then when the user clic the button must have the password to go to the worksheet. Can you help me ? Omar |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Omar
Sub test() Dim PW As String PW = InputBox("Password:") Select Case PW Case "" Case "PWD" 'your code here, instead of MsgBox "You da man" Case Else MsgBox "Wrong password" End Select End Sub See http://www.dicks-blog.com/excel/2004...rd_charac.html or http://www.xcelfiles.com/API_09.html if you need to mask the entries. HTH. Best wishes Harald "OMAR" skrev i melding ... I have a button with a macro linked that Hide or Unhide other worksheets. I like to protect that button with a password, then when the user clic the button must have the password to go to the worksheet. Can you help me ? Omar |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to retrive password protected worksheet but forgot password? | Excel Worksheet Functions | |||
how to automate opening a password protected excel file? e.g. a .xls that has a password set in the security tab. | Excel Worksheet Functions | |||
bypass password when update linking of password protected file | Excel Discussion (Misc queries) | |||
Excel password but cant hide the sheets before entering password | Excel Programming | |||
VBa, Password protected sheet fails to get unprotected with the same password | Excel Programming |