Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
rags
 
Posts: n/a
Default printing the names of text form fields

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   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman
 
Posts: n/a
Default printing the names of text form fields

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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating dynamic cross reference links in a Word document torajudo Microsoft Word Help 5 April 27th 23 08:57 PM
Why does text move around when typing in created form fields? jmbubble Microsoft Word Help 1 August 18th 05 12:01 AM
How can I tab between text form fields in Word 2002? Lee Microsoft Word Help 1 July 28th 05 08:59 PM
Outline Renee Hendershott Page Layout 2 December 25th 04 02:49 PM
Text boxes in protected Doc, form fields BP522 Microsoft Word Help 5 December 3rd 04 07:55 PM


All times are GMT +1. The time now is 02:01 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"