Private
Sub
CommandButton1_Click()
Dim
strDateiname
As
String
Dim
Pfad
As
String
Dim
strPDF
As
String
Pfad = ActiveDocument.Path
strDateiname = Left(ActiveDocument.Name, Len(ActiveDocument.Name) - 4)
strPDF = Pfad & strDateiname &
"pdf"
ActiveDocument.ExportAsFixedFormat OutputFileName:=strPDF, ExportFormat:=wdExportFormatPDF, _
OpenAfterExport:=
False
, OptimizeFor:=wdExportOptimizeForPrint, Range:= _
wdExportAllDocument, From:=1,
To
:=1, Item:=wdExportDocumentContent, _
IncludeDocProps:=
True
, KeepIRM:=
True
, CreateBookmarks:= _
wdExportCreateNoBookmarks, DocStructureTags:=
True
, BitmapMissingFonts:= _
True
, UseISO19005_1:=
False
End
Sub