Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 03-05-2015, 07:22 AM
gmayor's Avatar
gmayor gmayor is offline Can't copy image format from template Windows 7 64bit Can't copy image format from template Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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
If the document is created from the template, why doesn't it already have the information in the header and elsewhere?
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't copy image format from template 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
Can't copy image format from template Copy text pastes image kfranken8 Word 2 07-12-2012 09:33 PM
Can't copy image format from template 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

Other Forums: Access Forums

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