I don’t know VBA, but a quick search revealed this page, which seems to include your answer.
http://stackoverflow.com/questions/5663961/how-do-i-bring-an-ms-outlook-2007-dialog-to-the-front-from-ms-access-2007 Jeremy Jeremy Roussak [email protected] > On 24 Jan 2017, at 16:50, Daniel N. Solenthaler <[email protected]> > wrote: > > Hi friends, > > on a 4D form, we have a button that calls a VB script to have Outlook create > a new email window (on Windows). > > The VB script inserts all the necessary data (To:, CC, etc. including > attachments). > > The only problem we have, is that Outlook stays in the background and the new > email window is also in the background, thus not visible for the user. > > We need a way to bring Outlook to the front. > > Any ideas? > > Thanks! > Daniel > -------------------------------------------------------- > Daniel Nestor Solenthaler > eMail: [email protected] > -------------------------------------------------------- > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

