chuckalicious
asked on
Getting combobox to display values in a form in Word 2003
Ok, this one should be simple, I know, but I just cannot figure it out.
I have a form in Word 2003 which has a couple of combo boxes on it. I want these combo boxes to have a list of values for the user to select from. This list is static and doesn't need to be pulled from elsewhere.
How on earth do I get the list of values into the combo box?
One is called "DocType" and the other "Category". I have tried code like this:
With Me.Category
.AddItem ("Bible")
etc
and it doesn't work, no error, just no values.
If I can get this working I'll be very happy :)
Thanks
I have a form in Word 2003 which has a couple of combo boxes on it. I want these combo boxes to have a list of values for the user to select from. This list is static and doesn't need to be pulled from elsewhere.
How on earth do I get the list of values into the combo box?
One is called "DocType" and the other "Category". I have tried code like this:
With Me.Category
.AddItem ("Bible")
etc
and it doesn't work, no error, just no values.
If I can get this working I'll be very happy :)
Thanks
ASKER
I do not get any "Add" option.
To make sure we're on the right track here, I have a macro in Word 2003 which uses a form, also created via the MS VB editor in Word. When I right click on the ComboBox, I get a long list of properties/options, but none which give any kind of Add option....
And no, it doesn't need to be done programatically, I just want the values in the fields :)
To make sure we're on the right track here, I have a macro in Word 2003 which uses a form, also created via the MS VB editor in Word. When I right click on the ComboBox, I get a long list of properties/options, but none which give any kind of Add option....
And no, it doesn't need to be done programatically, I just want the values in the fields :)
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
See!! I knew it was something simple!!
I was using this same code, however I had it in the initialise of the form, instead of the enter event of the dropdown!
Works perfectly, thank you :)
I was using this same code, however I had it in the initialise of the form, instead of the enter event of the dropdown!
Works perfectly, thank you :)
Flyster