![]() |
#2
|
|||
|
|||
![]()
Hi
First save your document as a macro enabled document. Next click on the Developer tab followed by Visual Basic. Next on the left hand side click on ThisDocument and past the following code: Code:
Private Sub Document_Close() ActiveDocument.Save ActiveDocument.ExportAsFixedFormat OutputFileName:= _ "D:\Users\anking\Desktop\Menu Test to save as PDF.pdf", ExportFormat:= _ wdExportFormatPDF, OpenAfterExport:=Fasle, OptimizeFor:= _ wdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _ Item:=wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _ CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _ BitmapMissingFonts:=True, UseISO19005_1:=False ShowVisualBasicEditor = True End Sub Hope this helps. Tony |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need to uninstall, then install Office 2007. Is data in Outlook automatically saved? | jgenn | Office | 1 | 03-10-2014 02:14 PM |
Video not working when saved as .ppt But does when saved as .pptx | patientxwolf | PowerPoint | 5 | 01-24-2014 02:16 PM |
Word 2013 macro to generate last day of each week (Saturday) | CrabApple | Word | 1 | 11-08-2013 02:40 PM |
Using Word/OL 2010 to generate personalized email messages | rickr44318 | Word | 0 | 06-26-2013 06:34 AM |
How to identify whether Word 2007 was used to create a document saved as Word 2003 | noviceatwork | Word | 0 | 03-08-2012 06:40 AM |