Bonjour,
Je vous demande juste un petit astuce pour simplifier ma procédure de VBA.
Je pense que c'est très facile pour vous. Voici mes codes:
dim toto as string
for i=1 to 100
toto = Trim(Range("C" & i))
If Left(toto, 4) = "PART" Then
rows(i).delete
ElseIf Left(toto, 3) = "PRL" Then
rows(i).delete
ElseIf Left(toto, 4) = "SENT" Then
rows(i).delete
end if
next i
chaque condition rend le meme résutat, je pensais de mettre GoTo ETIQUETTE comme ce-ci:
for i=...
If Left(toto, 4) = "PART" Then
GoTo ETIQUETTE
end if
ETIQUETTE:
rows(i).delete
next i
ca ne marche pas.
Merci d'avance