Merge & fill-in forms

T

tcoop

Is it possible to create a fill-in form and merge with another file? I
created the fill-in form and was able to merge, but when I saved it, I was
not able to access each page after opening the file. When I opened the file
the only page available was the page that was current when the file was
saved. I was hoping to have the file accessible to others, in order for them
to complete their portion of the form.
 
D

Doug Robbins - Word MVP

The two features are incompatible. However, if you only want to use Text
Input Form Fields, if you run the following macro after setting everything
up in the mail merge main document (data source attached, merge fields
inserted, formfields inserted), it will execute the merge to a new document
and reinstate the formfields into each of the "letters" that are created in
that document using the data from the data source.

Dim i As Long
With ActiveDocument
For i = .FormFields.Count To 1 Step -1
.FormFields(i).Range.Text = "FF" & i
Next i
With .MailMerge
.Destination = wdSendToNewDocument
.Execute
End With
End With
Selection.HomeKey wdStory
With Selection.Find
Do While .Execute(FindText:="FF[0-9]{1,}", Forward:=True, _
MatchWildcards:=True, Wrap:=wdFindStop, MatchCase:=True) = True
ActiveDocument.FormFields.Add Selection.Range, wdFieldFormTextInput
Loop
End With

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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