Creating A ListBox

C

Craig Senior

New to macros and forms and feeling stupid by
documentation that doesn't seem to explain things in a way
that I can understand.

All I want to do is create a ListBox in a form for a Word
macro and load the value of the selection into a
DocProperty. I found procedures for loading it from the
user interface or from Excel spreadsheets.

Is there a way to define a list box with the list defined
as a property of the ListBox control like how Excel lets
you create a pick list from a names range or explicitly
=item1,item2,item3...

Example.
I'd like to create a listbox called "Status", which can
have two values: "Draft" and "Final". The default value
is "Draft". The result, either default of selection is
written to a custom DocProperty called "Status".
 
C

Cindy Meister -WordMVP-

Hi Craig,
All I want to do is create a ListBox in a form for a Word
macro and load the value of the selection into a
DocProperty. I found procedures for loading it from the
user interface or from Excel spreadsheets.
User form, or document form?
Is there a way to define a list box with the list defined
as a property of the ListBox control like how Excel lets
you create a pick list from a names range or explicitly
=item1,item2,item3...
Only using dropdown form fields...
Example.
I'd like to create a listbox called "Status", which can
have two values: "Draft" and "Final". The default value
is "Draft". The result, either default of selection is
written to a custom DocProperty called "Status".

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

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