MUKESHY12390
Well-known Member
- Joined
- Sep 18, 2012
- Messages
- 901
- Office Version
- 2013
- 2011
- 2010
- 2007
- Platform
- Windows
Hi All,
got situation --
I have one column (A) and header start from very first row (1) And after several rows header starts again.
so whenever I use Find method it give me second match doesn't give first match.
got situation --
I have one column (A) and header start from very first row (1) And after several rows header starts again.
so whenever I use Find method it give me second match doesn't give first match.
Code:
Example
'''''I enter text "EmpID" in two cell A1 and A2 and excel gives me only second match
Sheet1.Activate
Columns(1).Find(What:="EmpID", After:=Range("A1"), LookIn:=xlFormulas, LookAt _
:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
MsgBox ActiveCell.Address
End Sub