Solved

Outlook 2002 VBA Message box hidden

Posted on 2006-11-27
3
446 Views
Last Modified: 2011-09-20
Hi

I have a simple macro that checks a couple of things before sending the e-mail, a message box is displayed to the user which gives them options 'Yes', 'No', 'Cancel'.

The message box works fine on Outlook 2000 but moving it across to Outlook 2002 the message box is hidden below the outlook window and so the users do not realise it is there.

I have added vbMsgBoxSetForeground to the message box to try and force the message box to the front but this has not helped and the message box is still hidden behind the Outlook window.

Here's the message box line that I am using:

tmp = MsgBox("Test Message", vbYesNoCancel + vbMsgBoxSetForeground)

Could anyone suggest a solution to get the message box to display correctly ?

Thanks
0
Comment
Question by:duckp
  • 2
3 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 225 total points
ID: 18018312
Greetings, duckp.

Try using vbSystemModal instead of vbMsgBoxSetForeground.

Cheers!
0
 

Author Comment

by:duckp
ID: 18027791
Thanks BlueDevilFan it worked great :-)
0
 
LVL 76

Expert Comment

by:David Lee
ID: 18029923
You're welcome.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't know how to downgrade, my instructions below should be helpful.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question