Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Add Track Changes to script
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 |
#2
|
|||
|
|||
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 -- 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 "Parisa" wrote in message ... 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 |
#3
|
|||
|
|||
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. "Doug Robbins" wrote: 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 -- 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 "Parisa" wrote in message ... 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 |
#4
|
|||
|
|||
What document was active on the screen when you ran the macro?
-- 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 "Parisa" wrote in message ... 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. "Doug Robbins" wrote: 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 -- 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 "Parisa" wrote in message ... 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 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Track changes errors in lengthy docs | Microsoft Word Help | |||
How do I get track changes to stay with footnote? | Microsoft Word Help | |||
Track Changes Word 2003 | Microsoft Word Help | |||
Track Changes but no format tracking Wrd 02 | Formatting Long Documents | |||
change view track changes default setting | Microsoft Word Help |