Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is probably a simply question, but I'll feel like a dullard later. I
have an input box that I want to format the text as *** (standard password ) Heres what I have: Dim ans As String ans = InputBox("Enter password") ans = UCase(ans) If ans < "PASSWORD" Then MsgBox "Incorrect, try again" Exit Sub ELSE etc ect Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can't use VBA's inputbox() for this.
But you could design a small userform that can. Dan wrote: This is probably a simply question, but I'll feel like a dullard later. I have an input box that I want to format the text as *** (standard password ) Heres what I have: Dim ans As String ans = InputBox("Enter password") ans = UCase(ans) If ans < "PASSWORD" Then MsgBox "Incorrect, try again" Exit Sub ELSE etc ect Thanks -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If I did that, would I use a textbox on the userform and set the
passwordchar property of the textbox to "*" "Dave Peterson" wrote in message ... You can't use VBA's inputbox() for this. But you could design a small userform that can. Dan wrote: This is probably a simply question, but I'll feel like a dullard later. I have an input box that I want to format the text as *** (standard password ) Heres what I have: Dim ans As String ans = InputBox("Enter password") ans = UCase(ans) If ans < "PASSWORD" Then MsgBox "Incorrect, try again" Exit Sub ELSE etc ect Thanks -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
See
http://www.xcelfiles.com/API_09.html for a solution. Question is simple enough, but the solution is pretty complicated, so don't feel bad about it. HTH. Best wishes Harald "Dan" skrev i melding ... This is probably a simply question, but I'll feel like a dullard later. I have an input box that I want to format the text as *** (standard password ) Heres what I have: Dim ans As String ans = InputBox("Enter password") ans = UCase(ans) If ans < "PASSWORD" Then MsgBox "Incorrect, try again" Exit Sub ELSE etc ect Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
data input format | Excel Discussion (Misc queries) | |||
Input data format from GIS | Excel Discussion (Misc queries) | |||
How do I format a cell so that I can only input a Y or an N | Excel Worksheet Functions | |||
Allow user input, but not format changes | Excel Programming | |||
what is the format for an input cell? | Excel Discussion (Misc queries) |