Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autotext in Normal.dot 1

Status
Not open for further replies.

burr

Programmer
Jul 17, 2000
29
0
0
US
I have a New.dot template that contains a Macro and a ref to an AutoText entry. The New.dot will only look in the Normal.dot template for the Autotext. Any way to force it to look in the New.dot for the Autotext entry?

Thanks
Burr Stephens
Burr Stephens
burr-stephens@worldnet.att.net

 
I'm assuming that you want to look in New.dot to get an AT entry to insert into your document???
Replace 'enter path here' and 'Autotext name' with appropriate information.


Sub test()

Dim myTP As String

myTP = "c:\ enter path here \New.dot"

Templates(myTP).AutoTextEntries("Autotext name").Insert Where:=Selection.Range, RichText:=True

End Sub

Note If New.dot is the attached template then all you would need is

Activedocument.attachedtemplate.autotextentries("AutoText name").insert Where:=Selection.Range, RichText:=True



Donna
IT@BDW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top