finding a value thats present more than once in a sheet
Dim rng as Range
set rng = Cells.Find(What:="Q1 2004", _
After:=Range("A1"), _
LookIn:=xlFormulas, _
LookAt:=xlPart, _
SearchOrder:=xlByColumns, _
SearchDirection:=xlNext, _
MatchCase:=False)
if not rng is nothing then
rng.Select
End if
Using xlByColumns should find the cell from the lowest numbered column.
--
Regards,
Tom Ogilvy
"monika" wrote in message
...
hi
In one of the sheets I am finding COlumn "Q1 2004". THese
words are found in column "U" and Column "CG". How can I
differentiate which one i need to pick???
WHat i am currently doing is right inthe beginning when i
activate this sheet i select the first cell of the sheet:
cells(1,1).select
and since i know theoritically that I am looking for "Q1
2004" at its 1st occurance, hence i fetch the address of
that cell where these words are 1st found.
IS there a solution to this thing?
thanks
Monika
|