-
Solved: Macro to insert AutoText won't work!
I have a template in my Startup folder that has an AutoText entry in it. I want to create a macro that inserts that AutoText entry into the active document and then do some updates to it.
I tried using the following code, but I keep getting a message that the requested member of the collection does not exist!
[vba]Sub InsertMyAutoText()
Application.DisplayAutoCompleteTips = True
ActiveDocument.AttachedTemplate.AutoTextEntries("My AutoText"). _
Insert Where:=Selection.Range, RichText:=True
End Sub
[/vba]
What am I doing wrong??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules