PDA

View Full Version : Keep Formatting when Splitting/Copying Document



BrotherDude
07-22-2015, 12:33 PM
Hello All,

I have some code that splits a large document into individual documents, but I am having issues keeping the formatting. Is there a way to copy text and formatting from a single page or range of pages to a new word doc? Should I be renaming and deleting all but the pages I want? Any advice on how to keep formatting is much appreciated! Can provide code if necessary but really just need help with the approach.

-Jeff

gmaxey
07-23-2015, 01:21 PM
Try paste and format:

oDoc.Range.PasteAndFormat (wdFormatOriginalFormatting)

gmayor
07-24-2015, 12:12 AM
Create the new document(s) using the original document as a template, replacing its content with the split.
If it is the result of mail merge see http://www.gmayor.com/individual_merge_letters.htm