Is it possible to use Outlook 2003 from Excel 2000 through VBA

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prakashsakthivel
    New Member
    • Oct 2007
    • 57

    Is it possible to use Outlook 2003 from Excel 2000 through VBA

    Hi Members,

    Is it possible to use Outlook 2003 from excel 2000.

    I am using Outlook 2003 and Excel 2000.

    While try to send mail automatically from excel 2000 (VBA), Application is giving error msg like It can not be created.

    What I have to do?
    Could anybody please tell me to handle this issue.
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    Originally posted by prakashsakthive l
    Hi Members,

    Is it possible to use Outlook 2003 from excel 2000.

    I am using Outlook 2003 and Excel 2000.

    While try to send mail automatically from excel 2000 (VBA), Application is giving error msg like It can not be created.

    What I have to do?
    Could anybody please tell me to handle this issue.
    Can you be more clear?

    Are you trying to create a email message within excel then import it into your outlook application for sending? Or are you trying to actually send an email message from Excel out to an email address?

    Also what is the specific error message you are getting from your VBA code?

    Comment

    • kadghar
      Recognized Expert Top Contributor
      • Apr 2007
      • 1302

      #3
      Originally posted by prakashsakthive l
      Hi Members,

      Is it possible to use Outlook 2003 from excel 2000.

      I am using Outlook 2003 and Excel 2000.

      While try to send mail automatically from excel 2000 (VBA), Application is giving error msg like It can not be created.

      What I have to do?
      Could anybody please tell me to handle this issue.
      Well, Excel has some application dialogs, one of them allows you to send via e-mail the active file, is the xlDialogSendMai l constant (189), so something like this will do:

      [CODE=vb]Application.Dia logs(189).Show[/CODE]

      But if what you want is the complete job done (sending it, etc), then i'll recomend you to open the Outlook from Excel's VBA as an object, and work with its ActiveX :

      [CODE=vb]dim obj1 as object
      set obj1= createobject("o utlook.applicat ion")[/CODE]

      and here you can find out how to work with it.

      HTH.

      Comment

      Working...