![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Jefferson City, Missouri
Posts: 383
|
What is the code used to display asterisks when the user keys in the password?
My code is below, how would I change it so the user will see asterisks? Dim Pw As String Cells.EntireColumn.Hidden = True Pw = InputBox("Enter Password") If Pw = "Camaro" Then Cells.EntireColumn.Hidden = False: End Sheet2.Activate If Pw <> "Camaro" Then MsgBox ("Sorry, incorrect password, Good Bye!") Sheet1.Activate End If Thanks in advance.
__________________
I appreciate the help from everyone at Mr. Excel. viper |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi there
As far as I know, you cannot do this in the input box... I could be wrong though.. If you will settle for a textbox on a userform, then you're in business... Tom |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Jefferson City, Missouri
Posts: 383
|
Thanks Tom,
I changed it to use a text box and it works as I want. I just thought changing to a text box would involve more work than it did. Thanks again, viper
__________________
I appreciate the help from everyone at Mr. Excel. viper |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|