I have an Excel add-in which I use to do a large amount of data analysis, and then transfer the data to tables in a Word template. I would now like to insert some AutoText saved in the template before populating the tables, but I can't find the syntax to do this. I keep getting error code 450 - Wrong number of arguments or invalid property set.

Here's the code I'm using:

VB Code:
  1. Dim WordApp As Word.Application
  2.     Set WordApp = CreateObject("word.application")
  3.     WordApp.Visible = True
  4.     With WordApp
  5.         Documents.Add Template:= _
  6.         "C:\Documents and Settings\all users\Templates\rxtemptest.dot" _
  7.         , NewTemplate:=False, DocumentType:=0
  8.  
  9.         .Selection.Goto what:=wdGoToBookmark, Name:="PlaceMark"
  10.         .ActiveDocument.AttachedTemplate.AutoTextEntries("Temp1").Insert Where:=Selection.Range, RichText:=True
  11.          End With
  12.     Set WordApp = Nothing

Can someone point me in the right direction? If it is not possible to use Excel to insert AutoText, can someone tell me how to call a procedure or macro saved in the Word template that will insert the AutoText?

Thanks, Lee