Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I would like to search the textbox value in the worksheet and specifi ranges. If the textbox value matchs, then I want a new userform to com on the screen. Something like; Private Sub CommandButton1_Click() If txtbox.value matchs Sheets("Sheet1").Range("C2:C140").Find(What:=txtbo x.value) Then Unload Me Load Userform2 Userform2.Show End If If txtbox.value matchs Sheets("Sheet1").Range("D2:D290").Find(What:=txtbo x.value) Then Unload Me Load Userform3 Userform3.Show End If End Sub I dont understand why I get error already in the first row..(I txtbox....) Can anyone see where my problem is?? Thanks gk -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CF for specific ranges of time for an entire column | Excel Discussion (Misc queries) | |||
Matching two column ranges with a date | Excel Worksheet Functions | |||
Searching, matching then searching another list based on the match | Excel Discussion (Misc queries) | |||
Searching and matching in sheet (urgent) | Excel Worksheet Functions | |||
Searching for a particlar value and matching to a name.. | Excel Worksheet Functions |