#1
|
|||
|
|||
Copying is causing header to be lost
Currently I'm using this code to copy the formatted text from section(x) of one to another document:
Code:
nDoc.Sections(x).Range.Copy nDoc2.Range.PasteAndFormat wdFormatOriginalFormatting The solution I thought, if there is no better one, was to copy and paste only the main text region, excluding the header. How to do this? I appreciate any help. Thanks |
#2
|
|||
|
|||
I found a solution that works fine:
Code:
Set oRng = nDoc.Sections(x).Range oRng.MoveEnd wdCharacter, -1 oRng.Copy nDoc2.Range.PasteAndFormat wdFormatOriginalFormatting |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Deleting rows & pushing them up causing issues | ep2002 | Excel | 2 | 08-29-2014 02:09 AM |
pdfmoutlook add-in causing serious error | Jennifer Murphy | Outlook | 3 | 01-31-2014 01:26 PM |
Header/Footer lost with InsertFile | cksm4 | Word VBA | 2 | 03-07-2011 06:09 PM |
lost drawing toolbar causing Word to crash | manyrains | Drawing and Graphics | 1 | 11-07-2009 12:27 AM |
Lost Column header | Policy Peddler | Outlook | 1 | 06-05-2009 07:57 AM |