Finding data stored in a dropdown field on a word form

S

Steve A

Hi,

I'm using VSTO for a solution in Excel, but am trying to parse Word files.
I have a Word form which contains data.
However I cannot locate in the Word object model, that data input into a
dropdown form field in a Word document is stored.

I can get data from Text form fields at Bookmarks.Range.Formfields.Item(0)

But I cannot find where the data for the Drop-down items is stored.

So how do I access this data?

Thanks,

Stephen
 
C

Cindy M.

Hi =?Utf-8?B?U3RldmUgQQ==?=,
I'm using VSTO for a solution in Excel, but am trying to parse Word files.
I have a Word form which contains data.
However I cannot locate in the Word object model, that data input into a
dropdown form field in a Word document is stored.

I can get data from Text form fields at Bookmarks.Range.Formfields.Item(0)

But I cannot find where the data for the Drop-down items is stored.
If what you want is the text the user has displayed, then
Formfields.Item(1).Result also works for dropdown fields

Note that the Formfields collection, like most Office collections, is 1-,
not 0-based.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

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