ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   FINDing data only in one column (https://www.excelbanter.com/excel-programming/294839-re-finding-data-only-one-column.html)

Vasant Nanavati

FINDing data only in one column
 
Instead of"

Cells.Find

use:

Columns(1).Find

--

Vasant


"Mr B" wrote in message
...
How can I use the Find command to have Excel saerch for a string but to

only look in the A column and not in any other column?

I'm currently using this statement:

Range("A1").Select
Cells.Find(What:=Worksheets("Front_End").Range("C6 ").Value,

After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,

MatchCase:= _
False).Activate

I'm not sure what searching byrows vs cybolumns does, but I really want it

to ONLY look in the A column and if it doesn't find it there, then to stop.

Thanks





All times are GMT +1. The time now is 01:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com