Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following
Sub Admin() Dim Pass Pass = InputBox("Please Enter Password to Log in as Admin") If Pass = "1234" Then Application.Run Macro:="showme" Application.Run Macro:="Sheets_Show" ' Application.Run Macro:="Unprotect" Else MsgBox "Sorry Wrong Password" Worksheets("Till").Select Range("B10").Select End If End Sub i know im prob pushing it a little, but is there a way to blank put what i type so others cant see the password. Thanks you --- Message posted from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Not with an InputBox. You'll need to define a UserForm with a Text Field.
You can then define the PasswordChar to be an "*" or whatever. Regards Trevor "mushy_peas " wrote in message ... I have the following Sub Admin() Dim Pass Pass = InputBox("Please Enter Password to Log in as Admin") If Pass = "1234" Then Application.Run Macro:="showme" Application.Run Macro:="Sheets_Show" ' Application.Run Macro:="Unprotect" Else MsgBox "Sorry Wrong Password" Worksheets("Till").Select Range("B10").Select End If End Sub i know im prob pushing it a little, but is there a way to blank put what i type so others cant see the password. Thanks you --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mushy...
I have a workbook that was a download from Ozgrid, written by a guy called Dave Hawley... it does exactly what you want... You can change the password, username and the form to whatever you want... if you want it I will send it over.. seeya ste |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mushy...
I have a workbook that was a download from Ozgrid, written by a guy called Dave Hawley... it does exactly what you want... You can change the password, username and the form to whatever you want... if you want it I will send it over.. seeya ste |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Actually i figured it out. Just used a user form. If any1 wants to know,
email me(above) or reply here. Thanks Trev & Ste --- Message posted from http://www.ExcelForum.com/ |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
NO!!!!!!!
Got 1 small prob and a "would be nice" 1. small prob is that if no password is put in, then i get an error 2. i use a macro to start the useform, but can i get the cursor to go to the textbox, and when i hit the ENTER key, it presses the OK button. this would be the icing on the cake, but this is so cool! --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Password to enter the sheet | Excel Worksheet Functions | |||
Don't Want to Print Formated Blanked Out Cells | Excel Discussion (Misc queries) | |||
Why is Page Setup Comment Box blanked in Excel 2003? | New Users to Excel | |||
How to use macro to enter password? | Excel Programming | |||
Macro to go a WEB site and enter a password | Excel Programming |