S
sam
Hi - hope someone can help:
I am using Excel 2003 as a "front end" (at manager's request, as I would
prefer to use a Word userform). The intention is for the user to select
various options in Excel which then creates and populates a Word document.
The Word document is a template - I have managed to create a new document,
based on the template and populate at the required bookmarks, however my
problem is when I want to insert Autotext - it just doesn't appear.
I have successful inserted AutoText when just using Word VBA, so I think the
problem is the way I am accessing it from Excel - I have a variable (oDoc) to
mean the active document and the code:
oDoc.AttachedTemplate.AutoTextEntries("vvvf").Insert
Can anyone help me - it's driving me crazy!
Thanks
sam
I am using Excel 2003 as a "front end" (at manager's request, as I would
prefer to use a Word userform). The intention is for the user to select
various options in Excel which then creates and populates a Word document.
The Word document is a template - I have managed to create a new document,
based on the template and populate at the required bookmarks, however my
problem is when I want to insert Autotext - it just doesn't appear.
I have successful inserted AutoText when just using Word VBA, so I think the
problem is the way I am accessing it from Excel - I have a variable (oDoc) to
mean the active document and the code:
oDoc.AttachedTemplate.AutoTextEntries("vvvf").Insert
Can anyone help me - it's driving me crazy!
Thanks
sam