Can VBA process autotext (quickparts) stored in the current docume

P

Peter

I can process autotext entries (quickparts) stored in the normal template using
For i = 1 To NormalTemplate.AutoTextEntries.Count
With NormalTemplate.AutoTextEntries(i)

How can I process autotext stored the active document?

Thanks in advance for any assistance,
Peter Evans
 
G

Graham Mayor

You cannot store autotext entries in a document - only in a template. So in
order to answer this question you need to determine where the entries are
stored e.g.

ActiveDocument.AttachedTemplate.BuildingBlockEntries.Count
or
ActiveDocument.AttachedTemplate.AutoTextEntries.Count


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
P

Peter

G

Graham Mayor

I cannot imagine how you created this unless perhaps the document in
question is a renamed template, in which case it will be the attached
template as previously listed. You cannot save autotext entries in
documents.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
P

Peter

Thanks. I just created another document and as you said i can't attach
autotext entries into it.

The original document has been used for a while and I have been
working on using a .doc file as a way of installing .dot files in
word's startup folder. I've moved the modules, forms and document
contents to a new file now and this should reduce the changes of
surprises.

Thanks again,
Peter Evans
 

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