PC Review


Reply
Thread Tools Rate Thread

Reference to Outlook in Excel application

 
 
=?Utf-8?B?VGhvcg==?=
Guest
Posts: n/a
 
      4th Nov 2004



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
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      8th Nov 2004
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" <(E-Mail Removed)> wrote in message
news:A4E692C1-9E37-4C88-9692-(E-Mail Removed)...
>
>
>
> 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
application running in excel 2003 gives missing reference in excel2000 Prince Microsoft Excel Programming 1 13th Feb 2009 02:34 PM
How to get a reference to the Excel application inside a classimplementing IRTDServer Alex Microsoft Excel Programming 0 28th Jun 2008 03:12 AM
How to reference to other Excel application in VBA =?Utf-8?B?xYF1a2FzeiBTemN6ZXBhxYRza2k=?= Microsoft Excel Programming 6 31st May 2006 12:55 AM
workbook and application reference set to null after the user enters something in an excel sheet Tobias Microsoft Excel Programming 0 19th May 2004 05:55 PM
unable to create outlook application, missing reference! A.Black Microsoft Outlook Interoperability 1 27th Aug 2003 03:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:03 PM.