Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the command to get information out of a Word dropdown?

Status
Not open for further replies.

mmtraining

IS-IT--Management
Mar 18, 2002
104
DE
Hello everyone,

I have got a Word 97 file with lots of nice form fields in it. I got help here to read the value of a checkbox, thanx a lot.

Now I need to read the information out of a dropdown field. I don't mean in a userform in VBA (that's easy) but really in a Word file.

Basically, there is a form on paper that the project manager fills out, tailoring activities that then get taken over to another table. I now have to hand on the information from a dropdown field to the table as well (whose brilliant idea was that????)

I can't seem to "get at" the string which is in the dropdown field. Any ideas?

Thanx in advance for any help. :)

Carol
Berlin, Germany

PS Remind me NEVER to use Word forms again.
 
Got it!!!!!!!!!

Thanks for thinking, it helped:

Code:
Sub dropdown_auslesen()
    
    Dim oVariable As String
    oVariable = ActiveDocument.FormFields("km1ag").Result
    MsgBox oVariable

End Sub

Carol
Berlin, Germany :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top