1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Dim Rg as Range
set Rg = cells.Find(What:="compte négatif", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False)
if not Rg is nothing then
Rg.Activate
else
set Rg = cells.Find(What:="compte positif", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False)
If not Rg is Nothing then rg.Activate
end if |