Bonjour tout le monde
j'ai un petit souci avec un bouton imprimé dans un complément (.dot je crois) qui n'affiche pas les options d'impressions (recto verso...)
Voici la fonction :
Si quelqu'un avait juste une ch'tite idée ça m'aiderai beaucoup
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 Sub MAIN() ' ' Print.MAIN Macro ' Macro créée le 03/08/01 par counilh ' On Error GoTo finerror If ActiveDocument.MailMerge.MainDocumentType = wdFormLetters Then LastProtect = ActiveDocument.ProtectionType ReadOnly = ActiveDocument.Variables.Item("READONLY") If (ReadOnly = "OUI") Then ActiveDocument.Unprotect "CWPWDSTR2503" End If ActiveDocument.MailMerge.Destination = wdSendToPrinter ActiveDocument.MailMerge.Execute If (ReadOnly = "OUI") Then ActiveDocument.Protect wdAllowOnlyComments, False, "CWPWDSTR2503" End If Else Dialogs(wdDialogFilePrint).Show End If GoTo finok: finerror: Dialogs(wdDialogFilePrint).Show finok: End Sub
@ Bientôt et merci d'avance
Partager