Sub Enregistrer_PDF()
Private Sub CommandButton2_Click()
' Enregistrer_PDF Macro
'
ActivePrinter = "Microsoft Print to PDF"
Application.PrintOut FileName:="", Range:=wdPrintRangeOfPages, Item:= _
wdPrintDocumentWithMarkup, Copies:=1, Pages:="2-12", PageType:= _
wdPrintAllPages, Collate:=True, Background:=True, PrintToFile:=False, _
PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
End Sub
Sub Lot()
Private Sub CommandButton3_Click()
' Caractéristiques du lot
'
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"ASK Lot_numéro ""Lot - Numéro ?"" ", PreserveFormatting:=True
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"ASK Lot_étage ""Lot - Étage ?"" ", PreserveFormatting:=True
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"ASK Lot_surface ""Lot - Surface ?"" ", PreserveFormatting:=True
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _
"ASK Lot_loyer ""Lot - Loyer (sans €) ?"" ", PreserveFormatting:=True
End Sub