
Combo Box listing Autotext Entries from Add-In Template
In Word 97 and 2000 I've successfully used the following
to display the names of the AutoText entries in the
template or add-in that's running the user form:
Dim atEntry As AutoTextEntry
For Each atEntry In Templates
(ThisDocument.FullName).AutoTextEntries
ComboBox1.AddItem atEntry.Name
Next atEntry
Hope this helps,
Lynn
Quote:
>-----Original Message-----
>The suggestion I was given to replaced the code:
> ThisDocument.AttachedTemplate
>with
> Templates("TemplateName.dot")
>did not work! Sorry.
>The procedure simply stops running, with no error message
or indication of
>what the problem is.
>Help!
>Thanks again for your time, folks
>Regards
>Morag
in message
>> Thanks to some help on this site, I have managed to
create a combo-box on
Quote:
>a
>> user form (Word 97) which displays autotext entries
from the attached
>> template. I need the autotexts to come from an
attached template. I have
Quote:
>> sorted out the code to add the add-in, but haven't
managed to address it
Quote:
>> successfully to list the autotexts from the addin
rather than the attached
Quote:
>> template. I would be so grateful if anyone can help.
>> Thanks in anticipation.
>> Morag
>.