Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Is there a way to print the names of the text form fields in a document (I
renamed them using my own naming convention instead of using the default "text#" names. thanks for your response rags |
#2
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
On Tue, 17 Jan 2006 14:00:07 -0800, "rags"
wrote: Is there a way to print the names of the text form fields in a document (I renamed them using my own naming convention instead of using the default "text#" names. thanks for your response rags Make a copy of the document (or if it's really a template, make a document based on the template) and run this macro while the copy is the active document: Sub TextFieldNames() Dim oFF As FormField For Each oFF In ActiveDocument.FormFields With oFF If .Type = wdFieldFormTextInput Then .Result = .Name End If End With Next End Sub (See http://www.gmayor.com/installing_macro.htm if needed.) This will put the field's name into the field result. -- 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. |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating dynamic cross reference links in a Word document | Microsoft Word Help | |||
Why does text move around when typing in created form fields? | Microsoft Word Help | |||
How can I tab between text form fields in Word 2002? | Microsoft Word Help | |||
Outline | Page Layout | |||
Text boxes in protected Doc, form fields | Microsoft Word Help |