Private Sub CommandButton1_Click() 'bouton PDF
Dim nomfich$, n%, h#, w#
nomfich = Me.FullName
n = InStr(nomfich, "-")
nomfich = Left(nomfich, IIf(n, n - 1, Len(nomfich) - 5)) & "-P.pdf"
h = CommandButton1.Height
w = CommandButton1.Width
CommandButton1.Height = 0.75 'masque le bouton
CommandButton1.Width = 0.75
Me.ExportAsFixedFormat nomfich, wdExportFormatPDF
CommandButton1.Height = h 'affiche le bouton
CommandButton1.Width = w
Me.Range(1, 1).Select 'place le curseur au début
End Sub