Outlook 2002 VBA Message box hidden
Posted on 2006-11-27
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 ?