J
JJ1
Guest
Bonsoir
Je voudrais placer la commande " On error resume next "dans ma macro
Pouvez -vous me dire s'il y a un endroit préférable?
voici sa structure:
Dim ..
With ActiveSheet
cpt = 0
For i = 1 To Range("a20000").End(xlUp).Row
If .Range("au" & i).Value = "" Then Exit Sub
.Range("au" & i, "az" & i).Copy Destination:=.Range("ad8")
If .Range("ap" & 1).Value = 1 Then ......
cpt = i
Range("BI1").Value = cpt
Next i
End With
merci et bonne soirée à tous
Je voudrais placer la commande " On error resume next "dans ma macro
Pouvez -vous me dire s'il y a un endroit préférable?
voici sa structure:
Dim ..
With ActiveSheet
cpt = 0
For i = 1 To Range("a20000").End(xlUp).Row
If .Range("au" & i).Value = "" Then Exit Sub
.Range("au" & i, "az" & i).Copy Destination:=.Range("ad8")
If .Range("ap" & 1).Value = 1 Then ......
cpt = i
Range("BI1").Value = cpt
Next i
End With
merci et bonne soirée à tous