devin@lilliangroup.com-1
Posts: 39
Joined: 2015-11-20
|
Windows 10. In Word 2016 I have created an addin with a macro to handle attaching the current word document to a new email in Outlook 2016. It does so by calling a public sub in my Outlook 2016 addin. There are specific reasons why I do not just initiate the new email directly from the Word addin, because there are variables in the Outlook addin that need to be utilized.
The Word macro successfully executes and Outlook creates a new mail item with the correct file attached. But, the new mail item does not come to the forefront and display, even though in the Outlook sub I have tried calling comMailItem.Activate, and I have even handled the Inspector item for the mail item and also called comInspector.Activate. How can I simply force the focus to the new mail item so that it appears on the screen instead of staying hidden behind the Word document? |
|
Andrei Smolin
Add-in Express team
Posts: 18827
Joined: 2006-05-11
|
|