• Accepting deletions only in track changes (2002/SP3)

    Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Accepting deletions only in track changes (2002/SP3)

    Author
    Topic
    #420762

    I am trying to set up a macro to accept only the deletions in track changes. However, I don’t know the command to do this . I have tried using

    Activedocument.Revisions.AcceptAll

    However this accepts all changes not just deletions. Is it possible to do this?

    Viewing 0 reply threads
    Author
    Replies
    • #953730

      Try checking the revision type:

      Sub AcceptAllDeletions()
      Dim rev As Revision
      For Each rev In ActiveDocument.Revisions
          If rev.Type = wdRevisionDelete Then rev.Accept
      Next rev
      End Sub
      
      • #953732

        Many thanks – that works great.

      • #955080

        Sorry an extra request. The macro does not work for changes in the header or footer. Is there a way to include theses areas in the same macro.
        Thanks heaps in advance.

        • #955103

          Try

          Sub AcceptAllDeletions()
          Dim oStory As Range
          Dim rev As Revision
          For Each oStory In ActiveDocument.StoryRanges
          For Each rev In oStory.Revisions
          If rev.Type = wdRevisionDelete Then
          rev.Accept
          End If
          Next rev
          Next oStory
          End Sub

    Viewing 0 reply threads
    Reply To: Accepting deletions only in track changes (2002/SP3)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: