Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Searching and matching the textvalues in specific column ranges

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
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
CF for specific ranges of time for an entire column C.Poppell Excel Discussion (Misc queries) 9 December 4th 08 06:46 AM
Matching two column ranges with a date Data Analyst Excel Worksheet Functions 4 November 2nd 07 06:02 PM
Searching, matching then searching another list based on the match A.S. Excel Discussion (Misc queries) 1 December 13th 06 05:08 AM
Searching and matching in sheet (urgent) [email protected] Excel Worksheet Functions 1 September 10th 06 09:54 PM
Searching for a particlar value and matching to a name.. spezialize Excel Worksheet Functions 8 November 9th 05 01:08 AM


All times are GMT +1. The time now is 08:57 AM.

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

About Us

"It's about Microsoft Excel"