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 / May 2006

Tip: Looking for answers? Try searching our database.

Print a List of AutoText Entries

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
paulag1955 - 09 May 2006 21:38 GMT
Is it possible to print a listing of all the autotext entries in the normal
template and if so, can someone give me a push in the right direction?  Also,
is it possible to store entries in a template other than the normal template?

Thanks,
Paula
Jonathan West - 09 May 2006 21:46 GMT
> Is it possible to print a listing of all the autotext entries in the
> normal
> template and if so, can someone give me a push in the right direction?
> Also,
> is it possible to store entries in a template other than the normal
> template?

The AutoTextEntries collection is a property of any Template object. Each
AutoTextEntry has a Name property. You can iterate through the collection
and read the Name of each one. If you want the Normal template specifically,
that is the NormalTemplate object.

If you want to add an Autotext entry to a template other then Normal.dot by
hand, then make sure you have the right template open. Select the text you
want to include in the Autotext entry. Go to Insert, AutoText, AutoText.
Click the AutoText tab of the dialog that appears. Then choose your template
in the Look In box at the bottom. Then type in the name you want for the
AutoText entry and click Add.

To add an Autotext entry using code, use the Add method of the
AutoTextEntries collection of any template.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org 

Jay Freedman - 10 May 2006 02:44 GMT
Go to http://jay-freedman.info and download the AutoTextDumper and
AutoTextLoader templates. The code and comments in the templates
should answer your questions.

--
Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

>Is it possible to print a listing of all the autotext entries in the normal
>template and if so, can someone give me a push in the right direction?  Also,
>is it possible to store entries in a template other than the normal template?
>
>Thanks,
>Paula
paulag1955 - 10 May 2006 05:14 GMT
You guys are really good, unfortunately you read what I actually wrote rather
than what I meant!  I really meant AutoCorrect entires...is that possible?

Paula

> Is it possible to print a listing of all the autotext entries in the normal
> template and if so, can someone give me a push in the right direction?  Also,
> is it possible to store entries in a template other than the normal template?
>
> Thanks,
> Paula
Greg Maxey - 10 May 2006 15:18 GMT
Something like this:

Sub WriteACEntries()
Dim oAC As AutoCorrectEntry
For Each oAC In Application.AutoCorrect.Entries
 Selection.InsertAfter "Correct: " & oAC.Name & " with: " _
                       & oAC.Value & vbCr
Next
Selection.Collapse wdCollapseStart
End Sub
Jay Freedman - 10 May 2006 15:48 GMT
> Something like this:
>
[quoted text clipped - 6 lines]
> Selection.Collapse wdCollapseStart
> End Sub

Or get the AutoCorrect.dot template from
http://word.mvps.org/FAQs/Customization/ExportAutocorrect.htm, which does
essentially the same thing to create a document containing the AutoCorrect
entries.

Signature

Regards,
Jay Freedman
Microsoft Word MVP          FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

paulag1955 - 10 May 2006 22:02 GMT
This worked perfectly, thanks!  Do you happen to know if it is possible to
store AutoCorrect entries in a template other than the Normal template?  
Don't seem to be able to do i t with the organizer.

Thanks again!

> Something like this:
>
[quoted text clipped - 6 lines]
> Selection.Collapse wdCollapseStart
> End Sub
Greg Maxey - 10 May 2006 22:37 GMT
Read the article at the link Jay sent.  You will then realize that
autocorrect entries are not stored in a template.
 
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.