Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Ok i couldn't think how to word that in to a question very well (it early and i need a smoke).. Say i column 1 has several names, i wanna find the name of someon called.. erm i dunno.. 'Dave'.. my search feature i have present mean i have to type 'Dave' to find 'Dave', but what about 'David'? I jus wanna beable to type 'Dav' and find all the 'daves' and 'davids'. tryed recording a macro of myself doing the good ol' excel searc (ctrl+f). Now that worked a charm.. except when it doesn't fin anything and i get the error "Object variable or with block variabl not set" Could anyone help meh? "My current search 'feature'" Wrote: Private Sub CommandButton1_Click() Dim search as String search = txtsearch.Text Columns("A:A").Select Selection.fIND(What:=search, After:=ActiveCell, LookIn:=xlFormulas, _ LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext _ MatchCase:=False, SearchFormat:=False).Activate End Su -- Devit ----------------------------------------------------------------------- Devitt's Profile: http://www.excelforum.com/member.php...fo&userid=1442 View this thread: http://www.excelforum.com/showthread.php?threadid=26840 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
searching for a word(s) within a list | Excel Discussion (Misc queries) | |||
highlight the word when excel finds text you are searching for | Excel Worksheet Functions | |||
Is Excel or Word better for holding and searching data | Excel Discussion (Misc queries) | |||
searching a cell for a contained text word | Charts and Charting in Excel | |||
Vlookup for part of a word | Excel Worksheet Functions |