Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
min and max in a text box
is there a command button on the form that will open either form?
-- Gary wrote in message ... I have a textbox in a user form when an operator enters a number between 1500 and 1700 I want it to open userform5 if is is above 1700 or below 1500 I want it to open userform17 Thanks Stephen |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
min and max in a text box
I have a textbox in a user form when an operator enters a number between 1500 and 1700 I want it to open userform5 if is is above 1700 or below 1500 I want it to open userform17 Thanks Stephen |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
min and max in a text box
this may work for you, i used a command button on userform1
Private Sub CommandButton1_Click() If Me.TextBox1.Value = "" Then MsgBox "enter a number" Exit Sub End If If Me.TextBox1.Value 1500 And Me.TextBox1.Value < 1700 Then UserForm5.Show Else UserForm17.Show End If Unload Me End Sub -- Gary wrote in message ... I have a textbox in a user form when an operator enters a number between 1500 and 1700 I want it to open userform5 if is is above 1700 or below 1500 I want it to open userform17 Thanks Stephen |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Using TEXT and &TEXT - display numbers with commas, underline text | Excel Discussion (Misc queries) | |||
Text does not display in "Text boxs" and when wrapping text in a c | Excel Discussion (Misc queries) | |||
select text in cell based on text from another cell, paste the text at the begining of a thrid cell, etc... | Excel Programming | |||
Excel VBA: Worksheet cell .Text property: 1024 bytes text len limit | Excel Programming | |||
extracting text from within a cell - 'text to rows@ equivalent of 'text to columns' | Excel Programming |