View Single Post
 
Old 10-29-2020, 01:18 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Mailmerge and legacy forms are mutually exclusive. I would suggest using content controls in the document. You can then even put merge fields in the content controls to allow the recipient to change incorrect data.
Insert Content Control Add-In includes an easy way to convert form fields to content controls.
If you then wish to mail merge and produce a form that has fields that may be edited, without disturbing any other content, then useE-Mail Merge Add-in and run the following macro from the process to merge to documents or document attachments to e-mail (not PDF or to e-mail body).
Code:
Sub LockForm(odoc As Document)
Dim oCC As ContentControl
    For Each oCC In odoc.ContentControls
        oCC.Range.Editors.Add (wdEditorEveryone)
    Next oCC
    odoc.Protect Type:=wdAllowOnlyReading, NoReset:=True, Password:="password"
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote