joyacv2
asked on
find method vba
I have the following code
If IsError(Range(Cells(y, "A"), Cells(y, x - 1)).Find(what:=Cells(y, x).Value)) Then
Else
GoTo INI
End If
I want to identify when range.find not found nothing, but always go to the else :goto INI, any idea?
If IsError(Range(Cells(y, "A"), Cells(y, x - 1)).Find(what:=Cells(y, x).Value)) Then
Else
GoTo INI
End If
I want to identify when range.find not found nothing, but always go to the else :goto INI, any idea?
ASKER
Hi,
where is the goto ini statement?
where is the goto ini statement?
Put it in the else part
ASKER
Hi,
not working, enters in a infinite loop. Any other idea?
there is a loop running, i need to verify in the cells before the cells(y,x) before to enter the number, ensuring the number doesn't repeat
not working, enters in a infinite loop. Any other idea?
there is a loop running, i need to verify in the cells before the cells(y,x) before to enter the number, ensuring the number doesn't repeat
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
the perfect solution!!!!! Thanks!!!!
Open in new window