Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default 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
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
Using TEXT and &TEXT - display numbers with commas, underline text Gary Excel Discussion (Misc queries) 3 May 5th 23 03:46 AM
Text does not display in "Text boxs" and when wrapping text in a c Esteban Excel Discussion (Misc queries) 1 March 8th 07 11:59 PM
select text in cell based on text from another cell, paste the text at the begining of a thrid cell, etc... jsd219 Excel Programming 0 October 19th 06 05:04 PM
Excel VBA: Worksheet cell .Text property: 1024 bytes text len limit loyso Excel Programming 7 May 3rd 05 02:51 PM
extracting text from within a cell - 'text to rows@ equivalent of 'text to columns' Dan E[_2_] Excel Programming 4 July 30th 03 06:43 PM


All times are GMT +1. The time now is 10:05 PM.

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

About Us

"It's about Microsoft Excel"