• Disable Application Window Min, Max & Close

    Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Disable Application Window Min, Max & Close

    • This topic has 3 replies, 2 voices, and was last updated 24 years ago.
    Author
    Topic
    #355263

    Word 97 (SR2) on Win95/98

    This post relates ever so slightly to my previous post (#31633) and relates to my efforts to stop Word asking my users to save normal.dot and a global add-in on exit/quit.

    Previously, I’ve always used an AutoExit() macro to trigger an event that sets the NormalTemplate.Saved (and/or Templates(pathglobal.dot).Saved) property to True. This event never triggers when users use the application window close button (the X, up there on the right) to Exit Word though.

    I popped over to the Word VBA newsgroup and was pointed to an excellent article at http://www.mvps.org/word/FAQs/MacrosVBA/AppClassEvents.htm

    Unfortuantly, creating this Class Module and declaring an oApp_Quit event procedure does exactly the same as an AutoExit() and, most importantly, it fires after any

    Viewing 1 reply thread
    Author
    Replies
    • #523690

      Also, you may want to run a search on the word “disable” at http://www.vbcode.com. They may have something which disables the application window’s close feature. However, I do think that Lawrence’s suggestion of making the globals read-only is the more practical solution, and going a step further to making the folder read-only to prevent users from adding templates without IT Management’s review and approval.

      • #524117

        Thanks for the reply. Some useful pointers that I’ll investigate further; vbcode.com does have some code, some relating to API calls and some to VB forms. I’ll see where they take me.

        Thanks again,

        Ade

    • #524118

      Thanks for getting back also! As you suggest, Word shouldn’t be changing the global add-in from just the operation of the program, but it is.

      A simple fire up of Word and then an immediate shut-down via close X window button prompts to save global.dot. Strange? I’ll have to check my code to see if its doing something odd.

      Thanks for the pointers.

      Ade

    Viewing 1 reply thread
    Reply To: Disable Application Window Min, Max & Close

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

    Your information: