dsl pour le derengement,
pouvez vs me corrigé l'erreur dans le code, en fait il ya pas d'erreur , la macro se lance mais rien ne change
Sub copypast()
Dim ligFin As Long, ligExport As Long
Dim tableau As Variant
Dim Sub_grp_max As String
sub_grp_class = Worksheets("Feuil5").Range("D8") 'change 3la 7ssan subgroupe prepondéré soi "Calcul Multiple".D8 ola "Country Ratings".M288
ligExport = 18 'numero dial la ligne mnin ayba tcolla dakchi
With Feuil1 'adir hna numero dial la page mnin aytcopa dakchi
ligFin = .Range("a" & .Rows.Count).End(xlUp).Row
tableau = .Range("b4", "p" & ligFin)
End With
With Feuil2
For i = LBound(tableau, 1) To UBound(tableau, 1)
If tableau(i, 1) = "None" Then
.Cells(ligExport, 1) = tableau(i, 1)
.Cells(ligExport, 2) = tableau(i, 2)
.Cells(ligExport, 3) = tableau(i, 3)
.Cells(ligExport, 4) = tableau(i, 4)
.Cells(ligExport, 5) = tableau(i, 5)
.Cells(ligExport, 6) = tableau(i, 6)
.Cells(ligExport, 7) = tableau(i, 7)
.Cells(ligExport, 8) = tableau(i, 8)
.Cells(ligExport, 9) = tableau(i, 9)
.Cells(ligExport, 10) = tableau(i, 10)
.Cells(ligExport, 11) = tableau(i, 11)
.Cells(ligExport, 12) = tableau(i, 12)
.Cells(ligExport, 13) = tableau(i, 13)
.Cells(ligExport, 14) = tableau(i, 14)
.Cells(ligExport, 15) = tableau(i, 15)
ligExport = ligExport + 1
End If
Next i
End With
End Sub
Private Sub CommandButton1_Click()
Call copypast
End Sub
et merci d'avance