Results 1 to 6 of 6
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Fileds.Update (Word 97)

    I'm having a problem with a simple macro which updates all of the fields in the document. Since ActiveDocument.Fields.Update often misses the headers and footers, I've used the following:

    For Each s in ActiveDcoument.StoryRanges
    s.Feidls.Update
    Next

    This works just fine, except in one of our offices. There, if there is a comment in the document, a warning message appears: "This action cannot be undone."

    I can't even duplicate this on other PCs in other locations. I wouldn't think that comment fields could be updated... what's to update? So why the warning ?

    Any ideas why this might be occurring?

    Thanks,
    Richard Barrett

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Fileds.Update (Word 97)

    Have you checked which global templates and/or add-ins they use at the office where the warning occurs? One of these might intercept the updating.

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: Fileds.Update (Word 97)

    It does this in MY code.... if I step through the code, I can see the warning message appear as soon as the fields are updated. I've removed all other global templates, and the problem still occurs.

  4. #4
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Fileds.Update (Word 97)

    It does it in everybody else's code too! See for example Post 119558

    StuartR

  5. #5
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: Fileds.Update (Word 97)

    Hmmmm.... the other offices say they are not having the problem. I'll have to have a look for myself.

    Thanks for the info.

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

    Re: Fileds.Update (Word 97)

    I'm guessing but I would say that having the comment in the document takes up memory and the reason you get the warning is that Word can't do the job and remember enough to give you an undo after the updates. It may be that the machines giving the error are the ones that are tightest for RAM. Of course if all machines were equal then maybe are reboot and fresh run of Word would see less likelihood of warnings.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

Posting Permissions

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