Solved

Outlook 2002 VBA Message box hidden

Posted on 2006-11-27
3
453 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

RoboForm Secure Password Management System

RoboForm Everywhere - Superb Browser Support
Windows / Apple / IOS / Android / Linux / Chrome OS
Use different complex passwords everywhere
Best Secure Password Management by far
Synchronize all of your devices instantly
Safe, Secure & Highly Recommended!

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.
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

751 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