Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 05-18-2011, 08:59 AM
shabbaranks shabbaranks is offline Creating macro to convert/print to pdf Windows 7 64bit Creating macro to convert/print to pdf Office 2007
Advanced Beginner
Creating macro to convert/print to pdf
 
Join Date: Mar 2011
Posts: 89
shabbaranks is on a distinguished road
Default

Created the macro to print to pdf:

Sub Word2PDF()
'
' Word2PDF Macro
'
'
ActiveDocument.ExportAsFixedFormat OutputFileName:= _
ActiveDocument.Path & "\" & ActiveDocument.Name & ".pdf", ExportFormat:= _
wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _
wdExportOptimizeForPrint, Range:=wdExportAllDocument, _
item:=wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _
CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
BitmapMissingFonts:=True, UseISO19005_1:=False
End Sub

Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating macro to convert/print to pdf creating macro for biffurcation in sheets according to data. Nirik Excel Programming 8 05-07-2011 05:11 AM
Creating macro to convert/print to pdf Macro for Print sivakl2001 Word VBA 6 03-24-2011 11:25 PM
Creating a MACRO Nikb3522 Word VBA 0 10-21-2010 05:55 PM
Print Macro in MS Word steve207 Word VBA 0 09-10-2010 02:11 AM
creating macro steveb Word VBA 0 08-14-2010 01:29 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:41 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft