Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find text in Column or Range Name
I'm using the following code to find a text entered in a textbox to
keep the user from entering a duplicate text, but it's searcing the entire sheet. I just want the code to search column A. Cells.Find(What:=TextBox1, After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _ xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:=False) _ .Activate How do I set the find for column A only? Darrell |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find text in Column or Range Name
Columns(1).Find(What:=TextBox1, After:=ActiveCell,
LookIn:=xlFormulas, LookAt:= _ xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:=False) _ .Activate -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Lankchevy" wrote in message oups.com... I'm using the following code to find a text entered in a textbox to keep the user from entering a duplicate text, but it's searcing the entire sheet. I just want the code to search column A. Cells.Find(What:=TextBox1, After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _ xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:=False) _ .Activate How do I set the find for column A only? Darrell |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find text in Column or Range Name
Bob,
Thanks for the assistance. Darrell |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Find the first or last populated column in a range | Excel Worksheet Functions | |||
Find a text from a column in a text string within another column? | New Users to Excel | |||
Using a Range to find text | Excel Worksheet Functions | |||
How to find used range of a row/column? | Excel Programming | |||
Need to Find End Value of a Column with Unknown End Range | Excel Programming |