Solved

Outlook 2002 VBA Message box hidden

Posted on 2006-11-27
3
456 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
This article describes how to import Lotus Notes Contacts into Outlook 2016, 2013, 2010 and 2007 etc. with a few manual steps. You can easily export and migrate Lotus Notes contacts into Microsoft Outlook without having to use any third party tools.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

617 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