Stumped - Forcing Active Window or Closing Application

B

Bill Foley

Hey Gang,

I am automating Outlook from a PowerPoint slide show and am running into a
problem. I posted a message on the Outlook VBA NewsGroup, but this might be
a simple Office thing. My problem is this - my code looks to see if Outlook
is open, and if it isn't, opens it, does it's stuff, sends a message, and
closes, sending you back to the PowerPoint slide show. However if Outlook
is open (uses GetObject instead of CreateObject), it still does it's stuff,
sends the message, but stays the active window.

I am either trying to minimize Outlook, close Outlook, or switch the active
window back to the PowerPoint slideshow. Any ideas on how to do this? I
would be more than happy to post applicable code if necessary.

TIA!

--
Bill Foley, Microsoft MVP (PowerPoint)
Microsoft Office Specialist Master Instructor
www.pttinc.com
Check out PPT FAQs at: http://www.rdpslides.com/pptfaq/
"Success, something you measure when you are through succeeding."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top