Consulting

Results 1 to 3 of 3

Thread: Solved: Managing MsgBox Windows in Outlook

  1. #1
    VBAX Expert
    Joined
    Feb 2005
    Posts
    929
    Location

    Solved: Managing MsgBox Windows in Outlook

    I am running ol2003. To the best of my knowledge, the display from the MsgBox function is always on top of other windows of the calling application. However, in Outlook, that does not appear to be true.

    I have a MailItem Scan routine that is called by the Application_ItemSend procedure. The routine examines the MaiItem for mistakes I might have made (like not including an attachment referenced in the body, forgetting that it is now 2010 and not 2009, including recipients twice, etc). The routine checks for those things and then puts out a Msgbox display to which the user can indicate that things are OK or to not Send the Item. The Msgbox display is always behind the window displaying the current maiitem, so I have to minimize current MailItem window to see the Msgbox window. How can I force the Msgbox display to be on top of the current window?

    Thanks
    "It's not just the due date that's important, it's also the do date" [MWE]

    When your problem has been resolved, mark the thread SOLVED by clicking on the Thread Tools dropdown menu at the top of the thread.

  2. #2

  3. #3
    VBAX Expert
    Joined
    Feb 2005
    Posts
    929
    Location
    Thanks for the reply. At first I thought that the first link had supplied me with the clue that I needed, i.e., using vbModeless. Since the original post, I switched to a userform, so showing the form with vbModeLess was easy. That solves the "on top" problem but introduces another problem: the calling appl does not pause and does not "respond" to the arguements passed back.

    I will look at the other links and see what I can find.

    I think I will close this thread and open a new on focused on UserForms.
    Last edited by MWE; 04-24-2010 at 04:16 PM.
    "It's not just the due date that's important, it's also the do date" [MWE]

    When your problem has been resolved, mark the thread SOLVED by clicking on the Thread Tools dropdown menu at the top of the thread.

Posting Permissions

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