Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    Jun 2001
    Posts
    146
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem Accepting Changes (W2000 SR-1)

    I'm trying to make a macro that loops through a batch of documents and accepts all the changes in those documents. It works OK except for one thing--it won't accept changes at the end of the document. I've tried several tweaks, including selecting the whole document, moving the cursor to the end of the document, accepting changes more than once, but nothing works. I can manually accept those changes, but using a macro won't work.

    Thanks,
    Bob

  2. #2
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Problem Accepting Changes (W2000 SR-1)

    What is the code you are using? If you post your code, we should be able to sort out the issue.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  3. #3
    2 Star Lounger
    Join Date
    Jun 2001
    Posts
    146
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem Accepting Changes (W2000 SR-1)

    Here is the processing code that is applied to every document in the loop:

    ActiveDocument.TrackRevisions = False
    ActiveDocument.AcceptAllRevisions

    Thanks,
    Bob

  4. #4
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem Accepting Changes (W2000 SR-1)

    Hi Bob,

    Seems to work fine for me... except if I have deleted an empty paragraph at the very end of the doc, that paragraph isn't deleted.
    But the final paragraph mark isn't deleted when I accept the changes manually, either.

    If there is something else going wrong, perhaps you could post a short doc that demonstrates the problem?

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

  5. #5
    2 Star Lounger
    Join Date
    Jun 2001
    Posts
    146
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem Accepting Changes (W2000 SR-1)

    Klaus, that's the exact kind of edit that I'm having problems with--the deletion of the last paragraph marker in a document. Isn't there supposed to be something unique about that last paragraph marker? Something about it containing all the formatting for the document? I wonder if Word has some kind of natural defense coded into it.

    Bob

  6. #6
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Problem Accepting Changes (W2000 SR-1)

    Yes, that's what I heard, too (section and document specific markup is stored in the final paragraph mark, and that is what is causing the problems).

    Though it seems to me that Word could be "cleverer" about it. After all, if you delete the final, empty paragraph, there is still a paragraph at the end of the document.

    Paragraph marks right before a table are hard to delete/replace, too, and might make problems with Trach Changes also.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •