bonjour, svp j'ai besoin de votre aide,
je suis un débutant en vb, j'ai besoin d'activer l'apercu avant d'impression selon un optionbutton mais ca marche pas, c'est quoi mon erreur? merci
voila le code
je suis un débutant en vb, j'ai besoin d'activer l'apercu avant d'impression selon un optionbutton mais ca marche pas, c'est quoi mon erreur? merci
voila le code
Code:
Private Sub CommandButton1_Click() 'Aperçu avant impression
If OptionButton1 Then
Me.Hide
Worksheets("effet").PrintPreview
Me.Show
If OptionButton2 Then
Me.Hide
Worksheets("cheque").PrintPreview
Me.Show
End If
End If
End Sub