ich habe ein Problem.
Ich möchte ein Word-Document in PDF abspeichern. Habe auch einen Code dafür, jedoch bekomme ich hier immer Fehlermeldung.
Kann mir evtl jemand weiterhelfen.
Vielen Dank
Mein Code
' Dokument speichern
Acitvedocument.ExportAsFixedFormat "C:\Users\" & Environ("Username") & "\Desktop\" & "Bestellung\" & "Bestellung.pdf", _
ExportFormat:=wdExportFormatPDF, _
OpenAfterExport:=True, OptimizeFor:=wdExportOptimizeForPrint, Range:= _
wdExportAllDocument, Item:=wdExportDocumentContent, _
IncludeDocProps:=True, KeepIRM:=True, CreateBookmarks:= _
wdExportCreateNoBookmarks, DocStructureTags:=True, _
BitmapMissingFonts:=True, UseISO19005_1:=False