Reply
 
Thread Tools Display Modes
  #1   Report Post  
d. williams
 
Posts: n/a
Default 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   Report Post  
Doug Robbins - Word MVP
 
Posts: n/a
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using merge, how do I create multiple, separately saved documents KMMartin Mailmerge 11 September 18th 05 08:18 PM
mail merge documents moved from one server to another server don't Derek Ruesch Mailmerge 0 September 8th 05 06:36 PM
print multiple documents or merge multiple documents into one EE in Need Microsoft Word Help 3 July 16th 05 12:38 AM
Combining multiple merge documents cth5c Mailmerge 1 June 15th 05 11:14 AM
Merge multiple documents? George M. Lutz New Users 1 November 27th 04 01:06 PM


All times are GMT +1. The time now is 08:31 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"