Sub imprime()
Dim c As Range
With Feuil2
For Each c In .Range("b2:b" & .Range("b" & .Rows.Count).End(xlUp).Row)
If c.Value And c.Offset(, -1) <> "" Then
On Error GoTo erreur
Sheets(c.Offset(, -1).Value).PrintPreview
'Valider laligne ci-dessous pour imprimer et supprimer celle ci-dessus
'Sheets(C.Offset(, -1).Value).PrintOut
End If
Next
End With
Exit Sub
erreur:
MsgBox "Feuille " & c.Offset(, -1) & " inexistante"
Resume Next
Sheets("FEUILLE (2)").Select
Range("D1").Select
End Sub