79211595

Date: 2024-11-21 14:31:15
Score: 2
Natty:
Report link

The latest version of Office 365 allows for this with the CreateBookmarks argument.

Microsoft Documentation: https://learn.microsoft.com/en-us/office/vba/api/word.document.exportasfixedformat

Example VBA Code:

ActiveDocument.ExportAsFixedFormat _
    OutputFileName:= "#######Filepath#########", _
    ExportFormat:=wdExportFormatPDF, _
    CreateBookmarks:=wdExportCreateHeadingBookmarks
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Danny