View Single Post
 
Old 06-23-2023, 04:43 AM
Ddadoo57 Ddadoo57 is offline Windows 11 Office 2021
Advanced Beginner
 
Join Date: Feb 2023
Posts: 90
Ddadoo57 is on a distinguished road
Default 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
Reply With Quote