Enter a part number in a Text Box (example part number ag782241)
Hit “OK” on a Command Button
The program then hides UserForm1 and then it will search for UserFormag782241
It then shows the UserFormag782241
I have about 500 different part numbers
Right now I have my program to go directly to UserFormag782241
Please help me were I’m a novice in VB
__________________________________________________ ___________________________
Expand|Select|Wrap|Line Numbers
- Private Sub btnOK_Click()
- ' Check blanks
- If Trim(TextBox1.Text) <= "" Then
- MsgResp = MsgBox("You must enter PART NUMBER", vbYes, "Part Number")
- TextBox1.SetFocus
- Exit Sub
- End If
- UserForm1.Hide
- UserFormag782241.Show (page1)