snoopy80
Technical User
- Jun 27, 2001
- 106
I have a search
Cells.Find(What:="n", After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
End Sub
When it find "n" how can I determine what row is "n" in. I need to use this row number to referrence another cell in the same row but different column. For example, if "n" is in Cells(65, 2) then I need to see if Cells(65, 4) is empty or not if it is, I will delete it.
Thanks for helps.
Cells.Find(What:="n", After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
End Sub
When it find "n" how can I determine what row is "n" in. I need to use this row number to referrence another cell in the same row but different column. For example, if "n" is in Cells(65, 2) then I need to see if Cells(65, 4) is empty or not if it is, I will delete it.
Thanks for helps.