How to access value of combobox in word document

P

Piotr Chmielewski

Hi,

I'm trying to fix/change an Excel VBA macro that opens selected word
document and extracts some data from it. Unfortunately, I cannot find
any info how to access the value of combo box in that document (the
one from control toolbox, not a form). Any idea how to do that?

Regards
Piotr
 
D

Doug Robbins - Word MVP

Using the .Value attribute of the combobox should return the item that is
selected in the boundcolumn.
--
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
 
P

Piotr Chmielewski

Using the .Value attribute of the combobox should return the item that is
selected in the boundcolumn.

This is out of the question. However, I don't know how to access
combobox object at all :) You know, when I have an word document
object created, let's name it "doc", it's easy to access for example
table cell, it would be something like: doc.Tables(1).Cell(1,1).Range.
But how to access combobox and therefore all of it's attributes in
this document?

Regards
Piotr
 
P

Piotr Chmielewski

D

Doug Robbins - Word MVP

See my response to your initial post.

--
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
 
P

Piotr Chmielewski

U¿ytkownik "Doug Robbins - Word MVP said:
See my response to your initial post.
Yes, you were right, but my question should be more like: "how to refer to
combobox
object at all". I was trying things like: doc.shapes.combobox1.value etc,
didn't suppose
that it may be so simple...

Regards
Piotr
 

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