dchapin
07-01-2008, 05:16 PM
I have a document template which I load by storing it in the startup directory. This template contains autotext entries.... pretty simple so far... I am trying to add code to insert one of the autotext entries into the active document.
The code i hav so far is:
ActiveDocument.AttachedTemplate.AutoTextEntries("Prompt For Typist").Insert Where:=Selection.Range
which everything tells me should work. When I run word and click my button that should insert the autotext (which, by the way DOES exist), I get a Runtime error 5941: The requested member of the collection does not exist.
I just cannot see how to do this, or what my problem is....
Please help.... DC
The code i hav so far is:
ActiveDocument.AttachedTemplate.AutoTextEntries("Prompt For Typist").Insert Where:=Selection.Range
which everything tells me should work. When I run word and click my button that should insert the autotext (which, by the way DOES exist), I get a Runtime error 5941: The requested member of the collection does not exist.
I just cannot see how to do this, or what my problem is....
Please help.... DC