Turn application visibility off

E

Eric

I'm writing some VBA code in Excel that needs to send data to Word and then
send out the Word documents as attachments to emails. In Word VBA I can say
something like

Application.Visible=False

and this will create the documents in the background without the user seeing
everything happening. When it comes to send the emails, the email pops up on
the screen before it sends out. I can't find a Visible-equivalent method for
the Outlook application. Is there a way to set Outlook or the mailitem object
to not display itself?
 
D

Dmitry Streblechenko

No MailItem object is shown unles you explicitly call MailItem.Display.
What exactly do you see and how do you create and send messages?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
K

Ken Slovak - [MVP - Outlook]

It's probably a Simple MAPI Inspector. Not much you can do with that other
than use the OOM instead of a Simple MAPI call.
 

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