Bonjour,
j’ai une liste de 15 onglets ; je voudrais pouvoir sélectionner les onglets et imprimer les onglets sélectionnés en 1 x
j’ai créé un userform
'Sub AfficheChoixImpression()
Sub ImpressionChoix()
Impression.Hide
'Impression Feuille « Couverture »
If Impression.CheckBox1.Value = True Then
Sheets(« Couverture »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox2.Value = True Then
Sheets(« Compte de résultat_Charges »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox3.Value = True Then
Sheets(« Compte de résultat_Produits »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox4.Value = True Then
Sheets(« Compte de résultat synthétique »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox5.Value = True Then
Sheets(« Où est passé l’argent »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox6.Value = True Then
Sheets(« Quel est le résultat »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox7.Value = True Then
Sheets(« Ind-Quel est le résultat »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox8.Value = True Then
Sheets(« Sté-Quel est le résultat »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox9.Value = True Then
Sheets(« Conclusions »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox10.Value = True Then
Sheets(« Ind-Revenu dispo »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox11.Value = True Then
Sheets(« Sté-Revenu dispo »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox12.Value = True Then
Sheets(« Inventaire cultures »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox13.Value = True Then
Sheets(« Avances aux cultures »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox14.Value = True Then
Sheets(« Aides »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox15.Value = True Then
Sheets(« Stocks fourrage »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox16.Value = True Then
Sheets(« Autres produits »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox17.Value = True Then
Sheets(« Produits animaux »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
If Impression.CheckBox18.Value = True Then
Sheets(« Eléments financiers »).Select
Range(« Zone_d_impression »).Select
MenuImpression = Application.Dialogs(xlDialogPrint).Show(arg12:=1)
End If
Impression.Show
End Sub
j’ai un message d’erreur
Une idée ?
merci