Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Using XL2000, I'm trying to validate an InputBox entry:
Col = UCase(InputBox("Column for New Member? A or D", "COLUMN", "A")) If Col = "" Then Exit Sub This gives a strong enough hint to the novice user, but I want to make it foolproof and test for "A" OR "D" How? -- David |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
David,
Try something like Dim S As String S = InputBox("Enter A or D") Select Case UCase(S) Case "A", "D" MsgBox "entry OK" Case Else MsgBox "entry invalid" End Select -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "David Turner" wrote in message ... Using XL2000, I'm trying to validate an InputBox entry: Col = UCase(InputBox("Column for New Member? A or D", "COLUMN", "A")) If Col = "" Then Exit Sub This gives a strong enough hint to the novice user, but I want to make it foolproof and test for "A" OR "D" How? -- David |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) |