Making an AutoTextList field that persists

B

Bob W

Normally, by clicking an autotextlist field, an autotext list of choices
appears, and when ONE item is selected, the autotextlist field is replaced in
the document by the selected item. (ie, when user clicks on "Pick a Day" and
selects "Monday" from a list, "Pick a Day" disappears, replaced by "Monday".)

Is there a way to make the autotextlist field persist, so that a user can
invoke it multiple times? (ie, suppose the user needs to pick any three days
out of an autotext list of seven days). With a persistent autotextlist field,
they could pick Monday, then pick Wednesday, then pick Saturday....producing
the following result in their document:

Monday
Wednesday
Saturday

(When finished, they'd simply erase the autotextlist field itself.) Or, is
there some better way to accomplish this? By 'better' i mean (a) easier to
program; (b) Doesn't require a macro; (c) works seamlessly for Word 2003 and
2007 users.
 
J

Jay Freedman

After you choose an entry from an AutoTextList, it's still an AutoTextList
field, and you can still right-click it and choose another entry. However,
any one AutoTextList can only show *one* value at a time. If you need
multiple items shown simultaneously in your document, you would need to
start with that many AutoTextList fields.

The only reasonable alternative is macro-based: Build a Userform containing
a multi-select list box, and write code into that UserForm to display in the
document however many items the user has selected. As you write that code,
you'd have to decide how the multiple items are to be displayed (in separate
paragraphs, in one paragraph and separated by spaces or tabs, in a text box
or frame, etc.).

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top