inddon
04-08-2016, 02:48 AM
Hello There,
I am using a VBA code to export contents of email to a pdf file as below:
'Save as pdf
wrdApp.ActiveDocument.ExportAsFixedFormat OutputFileName:= _
strCurrentFile, 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
With the above code, it send the entire email. I want only the below email header in the pdf file:
From:
To:
Date:
Subject:
Could you please guide in how to modify the above code. Appreciate your help
Thanks
Don
I am using a VBA code to export contents of email to a pdf file as below:
'Save as pdf
wrdApp.ActiveDocument.ExportAsFixedFormat OutputFileName:= _
strCurrentFile, 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
With the above code, it send the entire email. I want only the below email header in the pdf file:
From:
To:
Date:
Subject:
Could you please guide in how to modify the above code. Appreciate your help
Thanks
Don