Can I print the drop down list I have added in a word form field?

G

Guest

I need to print several drop down lists from form fields. They are rather
long. Is there an easy way to do this?
 
C

Cindy M.

Hi =?Utf-8?B?SE1B?=,
I need to print several drop down lists from form fields. They are rather
long. Is there an easy way to do this?
Only by using a macro. Where (in which document and where on the page) would
you want the terms in the dropdown form field listed? Which version of Word?

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 :)
 
G

Guest

These values just need to be printed so they can be added to a new
application. It doesn't matter what they look like as long as we get the
lists. I'm in word 2003. Thanks,
Hillary
 
C

Cindy M.

Hi =?Utf-8?B?SE1B?=,
These values just need to be printed so they can be added to a new
application. It doesn't matter what they look like as long as we get the
lists. I'm in word 2003. Thanks,
Hillary
OK, see if this does more or less what you need:

Sub ExtractListsFromDropdowns()
Dim docList As Word.Document
Dim docForm As Word.Document
Dim ffld As Word.FormField
Dim listEntry As String
Dim e As Word.listEntry

Set docForm = ActiveDocument
Set docList = Documents.Add
For Each ffld In docForm.FormFields
If ffld.DropDown.Valid Then
listEntry = listEntry & vbCr & ffld.Name & vbCr
For Each e In ffld.DropDown.ListEntries
listEntry = listEntry & vbTab & e.Name & vbCr
Next
End If
Next
docList.content.Text = listEntry
End Sub


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