Delete autotext

D

Daniel

I managed to make a simple macro that places an autotext on every page on my
doc, the proceeds to print the doc.

I would like to know how I can then delete the autotext from all the page
once printed.

The "NormalTemplate.AutoTextEntries(strAnswer).Delete" command remove the
entry so that the AutoText no longer exist. What I want is simply to delete
them from the pages of the doc while keeping the AutoText define so that it
can be reused as required?

Thanks for the help,

Daniel
 
C

Charles Kenyon

When you insert AutoText, you end up with ....
text. - or graphics, or fields, or whatever is in your AutoText entry.

So for later deletion you need to find what you inserted. You could perhaps
do this with bookmarks, but ...
if you want something on every page, why not put it in the header or footer?
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
D

Doug Robbins - Word MVP

Use Edit>Replace and enter the autotext string in the Find what box and have
nothing in the Replace with box.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
H

Helmut Weber

Hi Daniel,

insertion of an autotext leaves no traces, IMHO.

If you want to be on the safe site,
you might have to create bookmarks for each insertion.

If you want a simple, rather limited
and rather dangerous solution,
clear the undo buffer, insert the autotexts,
print and undo all.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 

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