![]() |
|
#4
|
||||
|
||||
|
The template is not open unless your open it.
You don't have to open it to extract the header from it, but you do to select something in it, so if you are going to use the selection object you must open it first, and as it was opened in the previous code, you can add the following before you close it Code:
oTarget.Sections(1).Headers(wdHeaderFooterFirstPage).Range.FormattedText = _ oSource.Sections(1).Headers(wdHeaderFooterFirstPage).Range.FormattedText
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
1.image in a table 2.right click 3.menu click format 4.a format column appears
|
OldFatDog | Drawing and Graphics | 1 | 06-13-2014 11:19 PM |
| OneNote - Copy and paste image to the table | MartinK | OneNote | 0 | 09-03-2013 05:08 AM |
Copy text pastes image
|
kfranken8 | Word | 2 | 07-12-2012 09:33 PM |
Vector image format
|
jespestana | Drawing and Graphics | 4 | 11-26-2010 03:51 AM |
| Image Paste Format | curtisdehaven | Word | 0 | 09-16-2009 04:12 AM |