Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Wellington, Wellington, New Zealand
    Posts
    378
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Not saving on Ctrl+F4

    Hi

    Using Word2000 and Windows98, I have an AutoClose macro that contains one statement:* ActiveDocument.Fields.Update

    When I close a document using Ctrl+F4, it closes without warning, losing any changes made since the last save.* (This doesn't happen with FileClose.)

    If I remark out the (sole) line of code, I do get a warning on Ctrl+F4.

    I've checked keyboard assignments, and Ctrl+F4 is assigned to DocClose (in other words, the standard Word FileClose action).* I've also confirmed that the AutoClose macro is in fact being activated.

    Also, if I step through the macro, it does give me a warning.

    Looks like some sort of timing thing.* Any ideas?
    Dale

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Not saving on Ctrl+F4

    Hi Dale,

    I wonder if it might behave better if you tried a Document_Close procedure (in the ThisDocument private module), rather than AutoClose - these fire at slightly different times - something to try, anyway.

    Gary

Posting Permissions

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