Does anyone have a solution for displaying the generated email in the foreground?
Hello everyone,
I have a Word VBA function that creates predefined emails with attachments.
Here are the main lines of the code:
...
Dim OutlookApp As Outlook.Application
Set OutlookApp = CreateObject("Outlook.Application")
...
Set fileDialog = Application.fileDialog(msoFileDialogFilePicker)
...
OutlookApp.Display
OutlookApp.ActiveInspector.Activate
...
My question: the generated email often remains in the taskbar, instead of being displayed large in the foreground, as it does when Outlook is or has been run at least once. The user doesn't always have the reflex to look in the taskbar to display the email, which causes confusion.
Does anyone have a solution for displaying the generated email in the foreground?
Best regards,
David
|