• Maximising Excel (Excel 97)

    Author
    Topic
    #364805

    I have a workbook with some .onTime notifications popping up at intervals in a UserForm, when the userform is .Shown Excel may be minimised in which case the Taskbar button flashes and the user doesn’t see the userform until they maximise Excel .. how can I change this/ check if Excel is minimised, maximise it if needed and minimise it again?

    Viewing 0 reply threads
    Author
    Replies
    • #561263

      The following code should help if you incorporate it into your OnTime macro :

      Dim Winstate As Long
          Winstate = Application.WindowState
          Application.WindowState = xlMaximized
          ' Run you  userform message code here
          Application.WindowState = Winstate

      Andrew C

      • #561487

        Andrew, That works fine but is there a way to force Excel to the front of other open windows when it is maximised?

        Ron

    Viewing 0 reply threads
    Reply To: Maximising Excel (Excel 97)

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

    Your information: