XL 2016 Petit Bug Copier Coller D'une Feuille à L'autre Avec Condition

sive91

XLDnaute Junior
Bonjour, je ne comprend pas l'erreur que Excel me retourne, voici ma macro
VB:
Private Sub CommandButton2_Click()

    Dim plage As Range, cel As Range

    Application.ScreenUpdating = False
    valcherch = Worksheets("Variables").Range("B4").Value
    With Worksheets("BL")
        derlig = .Range("L" & Rows.Count).End(xlUp).Row
        Set plage = .Range("A1:S" & derlig)
    End With
   
    For Each cel In plage
        If cel <= valcherch Then
            cel.EntireRow.Copy
            Worksheets("BL_EPURE").Range("A1").Select
            Selection.Insert Shift:=xlDown
        End If
    Next cel
    Application.ScreenUpdating = True

End Sub

et j'ai le retour suivant
upload_2017-7-17_11-53-27.png


si vous avez une petite idée

merci
 

Pièces jointes

  • DMC.xlsm
    121.6 KB · Affichages: 25

Discussions similaires

Réponses
2
Affichages
147
Réponses
7
Affichages
318
Réponses
6
Affichages
130

Statistiques des forums

Discussions
312 176
Messages
2 085 962
Membres
103 067
dernier inscrit
el_privach