Hello all and thank you for the help.
I work daily with several word documents that I later save as pdf. I used information to modify a vba macro to directly save to pdf keeping the bookmark structure. This is already a great help, but now I want to take it to the next level:
have a vba that will automatically create several pdfs from the one word file, split at the bookmark point and also adding the bookmark name. Something like "myfile_bookrmakname.pdf".
thank you in advance for all the help.
Below is the code I am using.
PHP Code:
Sub Save_As_PDF()
'
' Save_As_PDF Macro
'
'
Dim sName As String
Dim sPath As String
With ActiveDocument
sName = Left(.Name, InStr(.Name, ".") - 1)
sName = sName & ".pdf"
sPath = .Path & "\"
.ExportAsFixedFormat _
OutputFileName:=sPath & sName, _
ExportFormat:=wdExportFormatPDF, _
OptimizeFor:=wdExportOptimizeForPrint, _
CreateBookmarks:=wdExportCreateWordBookmarks, _
DocStructureTags:=True, _
BitmapMissingFonts:=True
End With
End Sub