Link to home
Start Free TrialLog in
Avatar of duckp
duckp

asked on

Outlook 2002 VBA Message box hidden

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
ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of duckp
duckp

ASKER

Thanks BlueDevilFan it worked great :-)
You're welcome.