Combo Box

S

SoNew2This

Is there a way in Word VBA to create a combo or list box where values can be
displayed and also have the ability to add and delete items. For instance
have a list of predefined food that the user can modify via the list and add
additional items or remove items of food they don't want on the list?

Thanks in advance
 
D

Doug Robbins - Word MVP

See the article "How to create a Userform" at:

http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

On a userform you could have a text box and a listbox and use the AddItem
command to add the item that is entered into the text box to the list and
use the RemoveItem to remove an item from the Listbox.




--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
D

Dylan

Doug

I've created a combo for months jan, feb, mar, etc. But when I select a
month from the dropdown, it displays a number value e.g. mar = 3.

I've tried to lookup a solution to this in the post archives, but can't find
the solution.

Thanks Doug, for your help and support.
 
D

Dylan

Ooops!

Sorry, I posted this at the end of the wrong message, while looking for an
answer in the other posts.

Dylan
 

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