Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Print drop-down lists in Word 2003 form
I want to print the choices in drop-down lists I created in a form. I can't
seem to find any reference to these lists in Help and I'm not able to highlight the form box and copy/paste the choices. How? |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Print drop-down lists in Word 2003 form
The only way to do this is to program a macro. The following macro can be
pasted into Normal.dot or another template (http://www.gmayor.com/installing_macro.htm). Then open a document containing your form, and run the macro to create a separate document containing the list of dropdown contents. Sub ListDropdownChoices() Dim fld As FormField Dim lEntry As ListEntry Dim srcDoc As Document, destDoc As Document Dim destRg As Range Set srcDoc = ActiveDocument Set destDoc = Documents.Add For Each fld In srcDoc.FormFields If fld.Type = wdFieldFormDropDown Then Set destRg = destDoc.Range With destRg .Collapse wdCollapseEnd .Text = fld.Name & vbCr .MoveEnd wdCharacter, -1 .Bold = True End With For Each lEntry In fld.DropDown.ListEntries Set destRg = destDoc.Range destRg.Collapse wdCollapseEnd destRg.Text = lEntry.Name & vbCr Next End If Next End Sub -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. trivill wrote: I want to print the choices in drop-down lists I created in a form. I can't seem to find any reference to these lists in Help and I'm not able to highlight the form box and copy/paste the choices. How? |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Print drop-down lists in Word 2003 form
Thank you. Just thought and wish it would be easier than this! Seems like
something people would want to be able to do without writing a macro. Again, thanks. "Jay Freedman" wrote: The only way to do this is to program a macro. The following macro can be pasted into Normal.dot or another template (http://www.gmayor.com/installing_macro.htm). Then open a document containing your form, and run the macro to create a separate document containing the list of dropdown contents. Sub ListDropdownChoices() Dim fld As FormField Dim lEntry As ListEntry Dim srcDoc As Document, destDoc As Document Dim destRg As Range Set srcDoc = ActiveDocument Set destDoc = Documents.Add For Each fld In srcDoc.FormFields If fld.Type = wdFieldFormDropDown Then Set destRg = destDoc.Range With destRg .Collapse wdCollapseEnd .Text = fld.Name & vbCr .MoveEnd wdCharacter, -1 .Bold = True End With For Each lEntry In fld.DropDown.ListEntries Set destRg = destDoc.Range destRg.Collapse wdCollapseEnd destRg.Text = lEntry.Name & vbCr Next End If Next End Sub -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. trivill wrote: I want to print the choices in drop-down lists I created in a form. I can't seem to find any reference to these lists in Help and I'm not able to highlight the form box and copy/paste the choices. How? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
take yet another lesson from wordperfect "reveal codes" | Microsoft Word Help | |||
Change paper size; Word changes to invalid margins | New Users | |||
hard space between words. | Microsoft Word Help | |||
Word should allow to 'divide' page by 3 or 4, not just 2 | Page Layout | |||
Word 97 forms drop down lists are blank in Word 2003 | Microsoft Word Help |