Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Protecting Merge documents
I've got someone who wants to protect the original document and the
resulting merged document from being changed in any way other than the merged fields. Protecting the original doc doesn't work since the resulting merged doc is read/writable. Any suggestions? Thanks, Diane |
#2
|
|||
|
|||
Protecting Merge documents
You could use a macro to split the document into individual documents - one
for each record in the data source and protect each one. Sub splitter() ' splitter Macro ' Macro created by Doug Robbins to save each letter created by a mailmerge as a separate file. 'modified to protect each document for forms. Dim i As Long, Source as Document, Target as Document, Letter as Range Set Source = ActiveDocument For i = 1 to Source.Sections.Count Set Letter = Source.Sections(i).Range Letter.End=Letter.End-1 Set Target = Documents.Add Target.Range=Letter Target.Protect wdAllowOnlyFormFields Target.SaveAs FileName:="Letter" & i Target.Close Next i End Sub -- 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 "d. williams" wrote in message ... I've got someone who wants to protect the original document and the resulting merged document from being changed in any way other than the merged fields. Protecting the original doc doesn't work since the resulting merged doc is read/writable. Any suggestions? Thanks, Diane |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Using merge, how do I create multiple, separately saved documents | Mailmerge | |||
mail merge documents moved from one server to another server don't | Mailmerge | |||
print multiple documents or merge multiple documents into one | Microsoft Word Help | |||
Combining multiple merge documents | Mailmerge | |||
Merge multiple documents? | New Users |