Accessing a "normal" Combox with VBA

D

data.deutrium

Hello

I am currently struggeling while I try to acces a combo box with vba.
I am currently confused because we have 3 different kind of combo box
types in Word.

- "nortmal" combo box
- legacyforms combo box
- activex combo box

I would like to use the first type. Unfortunately I did not find an
example how to access such a combo box via VBA. i.e.

ActiveDocument.FormFields("MyDropdown")

will not work because this works only for legacy forms

Could anyone there provide me with an example how to access the normal
ones?

Thanks
data
 
J

Jean-Guy Marcil

Jonathan West was telling us:
Jonathan West nous racontait que :
Are you dealing with a combobox on the page in a document, or a
combobox in a custom dialog (UserForm)?

Indeed, what are "normal" comboboxes???

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
D

data.deutrium

Indeed, what are "normal" comboboxes???

Many thanks for your answer. I found it after clicking me through the
watch expression tree.... the magic is calling "ContentControls".
Thanks again

regards
Data
 
J

Jean-Guy Marcil

(e-mail address removed) was telling us:
(e-mail address removed) nous racontait que :
Many thanks for your answer. I found it after clicking me through the
watch expression tree.... the magic is calling "ContentControls".
Thanks again

Glad you found your answer.

If I may...
Next time it would be useful to mention that you are working with Word 2007,
which is significantly different from all previous versions.

If you had done so in this post, we would have guessed (probably) that you
were referring to Content Controls.

Good luck with your project.

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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