• Not saving on Ctrl+F4

    Author
    Topic
    #354899

    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

    Viewing 0 reply threads
    Author
    Replies
    • #522352

      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

    Viewing 0 reply threads
    Reply To: Not saving on Ctrl+F4

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

    Your information: