Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 03-06-2015, 05:35 AM
mrkozmic mrkozmic is offline Can't copy image format from template Windows 8 Can't copy image format from template Office 2013
Novice
Can't copy image format from template
 
Join Date: Mar 2015
Posts: 6
mrkozmic is on a distinguished road
Default

I might be wrong, but it looks like the template file is open. It's just not open as a regular file, not included in Documents.Count. There are several indications to that:
1. I can edit the template by referring to thisDocument.
2. I can copy all other things like if the template was open.
3. My code to copy the format works, but only if I set a breakpoint. I think I now why. When I select an image in thisDocument I make it the ActiveDocument and it gets corrupted with respect to the rest of the code. Now, if I set a breakpoint, the document gets focus back, ActiveDocument is corrected and the rest of the code works.

Does that make any sense?

My question is now:
How do I change focus from the template back to the document in VBA. ActiveDocument? Activate does obviously not work.

And finally:
4. When I open a document based on the template and try to delete the template, I get a message that the file is open i MS Word.
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 06:13 AM.


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