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
Charles Kenyon - 22 Nov 2005 20:14 GMT
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?

Signature
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
See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
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.
>I managed to make a simple macro that places an autotext on every page on
>my
[quoted text clipped - 13 lines]
>
> Daniel
Doug Robbins - Word MVP - 22 Nov 2005 20:43 GMT
Use Edit>Replace and enter the autotext string in the Find what box and have
nothing in the Replace with box.

Signature
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
>I managed to make a simple macro that places an autotext on every page on
>my
[quoted text clipped - 13 lines]
>
> Daniel
Helmut Weber - 22 Nov 2005 20:43 GMT
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.

Signature
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"