print bookmark names

  • Thread starter Thread starter Hilary Ratner
  • Start date Start date
H

Hilary Ratner

Hi.

I would like to print my document and wherever the form
fields are, have the bookmark names print in their place.
Is this possible? I looked it up in help and it said to do
File --> Print --> Print Document Properties. However,
that did not include the bookmark names, it only had page
count, last saved date, etc.

Any help is much appreciated!

Thanks!

Hilary
 
Hi Hilary,
I would like to print my document and wherever the form
fields are, have the bookmark names print in their place.
Is this possible? I looked it up in help and it said to do
File --> Print --> Print Document Properties. However,
that did not include the bookmark names, it only had page
count, last saved date, etc.
There's no automatic way to do this, no. You could

1. Use the "Default text" option; type the name of the
control in there.

2. Use VBA to write the name of the field into the field.
Something like this:

Sub PrintAllFormFieldNames()
Dim ffld As Word.FormField

For Each ffld In ActiveDocument.FormFields
If ffld.TextInput = True Then
ffld.Result = ffld.Name
End If
Next ffld
End Sub


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
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 :-)
 
Thank you!

Hilary
-----Original Message-----
Hi Hilary,

There's no automatic way to do this, no. You could

1. Use the "Default text" option; type the name of the
control in there.

2. Use VBA to write the name of the field into the field.
Something like this:

Sub PrintAllFormFieldNames()
Dim ffld As Word.FormField

For Each ffld In ActiveDocument.FormFields
If ffld.TextInput = True Then
ffld.Result = ffld.Name
End If
Next ffld
End Sub


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
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 :-)

.
 
Back
Top