I have three word doc files and I want to rename them with Now()
date. Three files are as
1. EMEA.doc --rename-> EMEA 083117.doc -convert-> EMEA 082317.PDF
2. CEEMEA.doc --rename-> CEEMEA 083117.doc -convert-> CEEMEA 082317.PDF
3. LATAM.doc --rename-> LATAM 083117.doc -convert-> LATAM 082317.PDF
I need to ExportAsFixedFormat
(PDF) these .Doc
files. Following code do the job for ActiveDocument
only. I want to save files in specific location without VBA asking for location.
ActiveDocument.ExportAsFixedFormat OutputFileName:= _
"C:\Documents and Settings\Administrator\Desktop\EMEA CEEMEA\LATAM.pdf", 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