Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Deleting Autoshapes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roderick O'Regan - 24 Mar 2006 13:51 GMT
I have an autotext entry  named "invoice overlay" (a graphic) which I
insert into a header in the following manner:

ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader

ActiveDocument.AttachedTemplate.AutoTextEntries("invoice
overlay").Insert Where:=Selection.Range, RichText:=True

There is another graphic in the form of a logo which is always there
in the headers which must never be removed.

Now I want to delete the autotext entry after it has fulfilled its
purpose without deleting the existing logo.

Could anyone show me, please, how to delete this autotext graphic and
leave the logo behind?

I've experimented with deleting shaperanges, shapes and so on but
without much success.

Thanks

Roderick
Charles Kenyon - 24 Mar 2006 14:17 GMT
Once the AutoText is inserted, it loses its characteristic as AutoText. It
is simply text and graphics.

The easiest way would be to also save your logo as an AutoText entry. Then
delete the entire header and reinsert the logo.

Also, consider using the range object rather than the selection object when
accessing the header.
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 have an autotext entry  named "invoice overlay" (a graphic) which I
> insert into a header in the following manner:
[quoted text clipped - 19 lines]
>
> Roderick
Roderick O'Regan - 25 Mar 2006 11:07 GMT
Thanks Charles for your help and advice.

I've worked it as you suggested.

Roderick

>Once the AutoText is inserted, it loses its characteristic as AutoText. It
>is simply text and graphics.
[quoted text clipped - 4 lines]
>Also, consider using the range object rather than the selection object when
>accessing the header.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.