Formfield to Formfield

M

Micheline

Hi All,
Using a Macro, how to I move from Formfield to Formfield
IF the formfield in the document is not Bookmarked?

Normally I would use:

ActiveDocument.FormFields("Text1").Select

IF the formfield is bookmarked Text1.
(sometimes I copy formfields, therefore they do not
contain a bookmark name.)

Any ideas would be much appreciated.

Thanks.
 
G

Greg

Micheline,

You could use the index value.

ActiveDocument.FormFields(3).Select

would select the third formfiel, (4) the fourth ect.

Why don't you just doubleclick the formfield and assign a
bookmark?
 
M

Micheline

Thanks Greg,
I have created a macro that goes from formfield to
formfield and names them starting at Text1.
Might not be perfect, but does the job.
--
Text = 1
For Each aField In ActiveDocument.FormFields
If aField.Type = wdFieldFormTextInput Then Count =
Count + 1

ActiveDocument.FormFields(Count).Select
With Dialogs(wdDialogFormFieldOptions)
.Name = "Text" & Count
.Execute
End With

Next aField
--
 

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