Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 866
Default input box format

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default input box format

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 292
Default input box format

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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default input box format

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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
data input format Roy Gudgeon[_2_] Excel Discussion (Misc queries) 1 March 22nd 10 01:59 PM
Input data format from GIS Khoshravan Excel Discussion (Misc queries) 1 May 19th 06 10:05 AM
How do I format a cell so that I can only input a Y or an N Osacr Excel Worksheet Functions 2 April 19th 06 04:24 PM
Allow user input, but not format changes [email protected] Excel Programming 2 October 13th 05 07:07 PM
what is the format for an input cell? Pumaman Excel Discussion (Misc queries) 2 February 8th 05 05:05 AM


All times are GMT +1. The time now is 01:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"