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 / September 2005

Tip: Looking for answers? Try searching our database.

Autotextentry

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
G. Hagg - 30 Sep 2005 02:13 GMT
Using word2003, i have an autotext extry saved to an attached template
consisting of a table with links.

How can i insert this autotext extry into my document with vba code.

Thanks
Greg Maxey - 30 Sep 2005 02:25 GMT
Something like:
Sub test()
Dim myRng As Range

Set myRng = Selection.Range
ActiveDocument.AttachedTemplate.AutoTextEntries("Checked Box").Insert myRng

End Sub

Where you replace "Checked Box" with the name of your AT entry.

> Using word2003, i have an autotext extry saved to an attached template
> consisting of a table with links.
>
> How can i insert this autotext extry into my document with vba code.
>
> Thanks
G. Hagg - 30 Sep 2005 02:55 GMT
Thanks Greg

I get a runtime error 5941, the requested member of the collection does not
exist.  My autotext entry contains a table with bookmark links, not sure if
this is the problem?

gh

> Something like:
> Sub test()
[quoted text clipped - 14 lines]
>>
>> Thanks
 
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.