Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-17-2014, 10:35 AM
rjrichar40 rjrichar40 is offline Export to PDF and also append additional Docs Windows 7 32bit Export to PDF and also append additional Docs Office 2010 32bit
Novice
Export to PDF and also append additional Docs
 
Join Date: Aug 2014
Posts: 11
rjrichar40 is on a distinguished road
Default Export to PDF and also append additional Docs

Howdy folks,

I have some code to create a PDF from a word doc. Pretty easy stuff. The problems I am running into are:

1) how can I append additional Word doc files to an existing PDF? Or, have several Docs selected, and merge them into one PDF?

2) in VBA, can I assign permissions such as Read-Only and text not allowed to be copied?

The code I have tried so far is below, but I don't see options for the above. Any thoughts are welcome! (I should add that I can't use 3rd party software for this... just Word 2010 and inherent PDF ability).

2 variations of the same thing, basically:
WdDoc.ExportAsFixedFormat OutputFileName:=StrFilePath, ExportFormat:=wdExportFormatPDF, OpenAfterExport:=True, OptimizeFor:=wdExportOptimizeForPrint, Range:=wdExportAllDocument, Item:=wdExportDocumentContent, IncludeDocProps:=True

ActiveDocument.SaveAs2 Replace(ActiveDocument.FullName, ActiveDocument.Name, "") + Mid(ActiveDocument.Name, 1, InStr(1, ActiveDocument.Name, ".") - 1) + ".pdf", Word.WdSaveFormat.wdFormatPDF
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to export additional calendars supersadie Outlook 0 07-09-2014 06:22 AM
Export to PDF and also append additional Docs How to append specific *.tif image with another tif file through Word VBA aarun2 Word VBA 1 04-08-2014 03:20 PM
Append text to a sentence containing specific word dgp Word VBA 3 02-28-2014 10:38 PM
Append text to a cell with color gvdm Excel 1 04-17-2012 10:21 AM
Export to PDF and also append additional Docs Additional Markers in 2010(?) judicial85 Excel 5 09-26-2011 08:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:31 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