Hi guru's!
I have an array where I get the first element of the array and I want to use the that string to first lookup that string and then use that to find my next string but start the find after the address of the first found string:
The problem is with the After:= argument. I've tried FoundSub.address, that does not work either.
So I'm trying to tell the macro to start my find after FoundSub.address, how can I accomplish this???
Thanks in advance.
I have an array where I get the first element of the array and I want to use the that string to first lookup that string and then use that to find my next string but start the find after the address of the first found string:
Code:
If InStr(myCell, ":") Then
MyArray = Split(myCell, ":")
arr = MyArray(UBound(MyArray))
myCell = arr
subAcct = True
arrDown = MyArray(LBound(MyArray))
End If
Set FoundSub = Cells.Find(what:=arrDown, After:=ActiveCell, LookIn:=xlFormulas _
, LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=True)
Set FoundCell = Cells.Find(what:=myCell,[U][B] After:=FoundSub[/B][/U], LookIn:=xlFormulas _
, LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=True)
The problem is with the After:= argument. I've tried FoundSub.address, that does not work either.
So I'm trying to tell the macro to start my find after FoundSub.address, how can I accomplish this???
Thanks in advance.