Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / May 2005

Tip: Looking for answers? Try searching our database.

Add Track Changes to script

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Parisa - 23 May 2005 16:25 GMT
Thanks for the updated script but how do I add the track changes feature to
the newest script?

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.SaveAs FileName:="Letter" & i
   Target.Close
Next i
Doug Robbins - 23 May 2005 19:29 GMT
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
   With Target
       .Range=Letter
       .TrackRevisions = True
       .PrintRevisions = True
       .ShowRevisions = True
       .SaveAs FileName:="Letter" & i
       .Close
   End With
Next i

Signature

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

> Thanks for the updated script but how do I add the track changes feature
> to
[quoted text clipped - 10 lines]
>    Target.Close
> Next i
Parisa - 23 May 2005 20:59 GMT
I tried the script. It saved the file. It turned on track changes but  all
the letters were blank. No mail merge data was  in any of the saved letters.

> Dim i As Long, Source as Document, Target as Document, Letter as Range
> Set Source = ActiveDocument
[quoted text clipped - 26 lines]
> >    Target.Close
> > Next i
Doug Robbins - 24 May 2005 07:05 GMT
What document was active on the screen when you ran the macro?

Signature

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

>I tried the script. It saved the file. It turned on track changes but  all
> the letters were blank. No mail merge data was  in any of the saved
[quoted text clipped - 31 lines]
>> >    Target.Close
>> > Next i
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.