View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Colo[_34_] Colo[_34_] is offline
external usenet poster
 
Posts: 1
Default Creating a MailItem in Outlook from Excel using Late Binding

Hi Steven,
My machine not have Outlook now, but please try to use 0 instead of
olMailItem.
olMailItem is a constant of Outlook, so I think in the Late Binding,
Excel cannot understand what is olMailItem.

Code:
--------------------

Set olMail = olApp.CreateItem(0)

--------------------


And to use MAPI(Messaging Application Program Interface), we need to
get NameSpace object.
To handle email application, we need to use MAPI. :D


---
Message posted from http://www.ExcelForum.com/