Copying Autotext

T

Terry

Can anyone advise?

I've been trying to copy some styles between documents, and have done it
using...
With ActiveDocument
.UpdateStylesOnOpen = True
.AttachedTemplate = "C:\Program Files\Microsoft
Office\Templates\style.dot"

however, i need to copy the autotext across too.

I've been toying with the idea of using something along the lines of...
MyTemplate.AutoTextEntries.Count
and looping round, copying the name & value across.

Does anyone have any thoughts/experiences they can share?
 
M

Mark Tangard

Terry,

Check out the OrganizerCopy method in the VBA help. It'll do
exactly what you're after, no looping necessary.
 
T

Terry

Thanks Mark

I'd looked at the OrganizerCopy method, but the source of all the Autotext
increases and decreases so that was why i'd decided to loop around a Count
of what was there, making it more dynamic.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top