Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / October 2005

Tip: Looking for answers? Try searching our database.

Outlook 2003 Classname

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Simon Woods - 31 Oct 2005 11:00 GMT
Hi

   Dim olapp As Outlook.Application
   On Error Resume Next
   Set olapp = CreateObject("Outlook.Application")
   If olapp Is Nothing Then
       Set olapp = GetObject("Outlook.Application")
   End If

I've just changed machines and my new machine has Outlook 2003 installed. I
use to run a VB program to look in one of the Outlook journals on my old
machine running Outlook 2000. I've tried running it on my new machine and it
doesn't run. The Classname "Outlook.Application" seems to be unrecognised
generating a "Specifed Module could not be found" when executing the
CreateObject command.

Any suggestions?

Thanks

Simon
Sue Mosher [MVP-Outlook] - 31 Oct 2005 13:18 GMT
Some anti-virus programs have a script block that blocks access to CreateObject("Outlook.Application"). In any case, your code should attempt to use GetObject first, not CreateObject. If Outlook is already running, that should work OK.

Signature

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

> Hi
>
[quoted text clipped - 17 lines]
>
> Simon
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.