Hello, my code is :
I get the error : next without for. I don't understand why, can someone help ?
Thank you
Code:
Dim j As Integer
For j = 1 To 20
If TypeName(List_SSP(j).nom_ssp) <> Empty Then
If List_SSP(j).nom_ssp = List_Projet(i).ssp_P.nom_ssp Then
Sheets("originales").Select
Range("F2:G8").Select
Selection.Copy
Sheets("Sheet6").Select
ActiveSheet.Paste
ActiveCell.Offset(0, 1).Value = List_SSP(j).nom_ssp
ActiveCell.Offset(1, 1).Value = List_SSP(j).statut_ssp
ActiveCell.Offset(2, 1).Value = List_SSP(j).deadline_ssp
ActiveCell.Offset(3, 1).Value = List_SSP(j).date_debut_ssp
ActiveCell.Offset(4, 1).Value = List_SSP(j).date_fin_ssp
ActiveCell.Offset(5, 1).Value = List_SSP(j).cout_previsionnel_ssp
ActiveCell.Offset(6, 1).Value = List_SSP(j).cout_reel_ssp
Range(ActiveCell, ActiveCell.Offset(6, 1)).Interior.ColorIndex = List_Projet(j).couleur_P
Next
ElseIf List_SSP(j).nom_ssp <> List_Projet(i).ssp_P.nom_ssp Then
Next
End If
I get the error : next without for. I don't understand why, can someone help ?
Thank you
Last edited by a moderator: