Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
How can you search for a value in a sheet while only looking in one column? I use the below code to use the find feature but it searches all cols. ws.Cells.Find(What:="*" & ExcelSearch & "*", After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _ False, SearchFormat:=False).Activate I wish to search and then display all sheets that have a value in it ( i.e. test) I have done the code for looping through a number of workbooks and then all the worksheets . However what is the best way to check for a value in a sheet. Is it the code above? And if so how do you prevent the search finding the values more than once? I presently compare row numbers , i.e. if the last row where the value was found is greater or equal to the new found value then it must be starting at the top of the page again. Any help would be appreicated!!! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to search in one column, and replace in the other column if fo | Excel Discussion (Misc queries) | |||
Search a column for values, return a value from adj column | Excel Worksheet Functions | |||
LookUp Function with Two Column Search Returning One Column Value | Excel Worksheet Functions | |||
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look | Excel Discussion (Misc queries) | |||
Search one column and return value from next column | Excel Discussion (Misc queries) |