![]() |
|
#6
|
|||
|
|||
|
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. |
|
|
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 |