PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Reference to Outlook in Excel application

Reply

Reference to Outlook in Excel application

 
Thread Tools Rate Thread
Old 04-11-2004, 09:24 PM   #1
=?Utf-8?B?VGhvcg==?=
Guest
 
Posts: n/a
Default Reference to Outlook in Excel application





Hello,

I have made an application where I send Outlook e-mail via Excel. Since
I don't know what version of Excel the user has I need a way to find the
correct reference to the MS object library.

I have seen a reference to a general "obl" that works regardless of
Outlookversion. Does anybody know where I can find it?

How can I check what mailprogram the user is running as standard,
Outlook or Outlook Express? Depending of answer I will use different
code to send mail. If the user is running a mailprogram other than MS I
would like to end the process with a message to the user.

Thanks in advance
  Reply With Quote
Old 08-11-2004, 04:13 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Reference to Outlook in Excel application

I think what you're referring to is "late binding," where you don't include
a reference at all. Instead, you instantiate an Outlook Application object
as:

Set objOL = CreateObject("Outlook.Application")

Note that if you use late binding, you'll need Const declarations for any
Outlook constants that your code users.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Thor" <Thor@discussions.microsoft.com> wrote in message
news:A4E692C1-9E37-4C88-9692-A85D3B7D5F74@microsoft.com...
>
>
>
> Hello,
>
> I have made an application where I send Outlook e-mail via Excel. Since
> I don't know what version of Excel the user has I need a way to find the
> correct reference to the MS object library.
>
> I have seen a reference to a general "obl" that works regardless of
> Outlookversion. Does anybody know where I can find it?
>
> How can I check what mailprogram the user is running as standard,
> Outlook or Outlook Express? Depending of answer I will use different
> code to send mail. If the user is running a mailprogram other than MS I
> would like to end the process with a message to the user.
>
> Thanks in advance



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off