A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2003. use of Withevents gives error 430



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 16th 06, 01:10 PM posted to microsoft.public.outlook.program_vba
Jan Lefere
external usenet poster
 
Posts: 1
Default Outlook 2003. use of Withevents gives error 430

Option Explicit

Public WithEvents myOlApp As Outlook.Application

Private Sub Class_Initialize()
Set myOlApp = CreateObject("Outlook.Application")
End Sub

Private Sub Class_Terminate()

If Not myOlApp Is Nothing Then Set myOlApp = Nothing

End Sub


Why Class_initialize generates an error 430, Class does not support
automation or does not support expected interface ?

--
J.Lefere
Ads
  #2  
Old May 16th 06, 02:08 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2003. use of Withevents gives error 430

Does myOlApp return Nothing or an actual Outlook.Application object. Many antivirus programs block CreateObject("Outlook.Application")

--
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

"Jan Lefere" wrote in message ...
Option Explicit

Public WithEvents myOlApp As Outlook.Application

Private Sub Class_Initialize()
Set myOlApp = CreateObject("Outlook.Application")
End Sub

Private Sub Class_Terminate()

If Not myOlApp Is Nothing Then Set myOlApp = Nothing

End Sub


Why Class_initialize generates an error 430, Class does not support
automation or does not support expected interface ?

--
J.Lefere

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003 Calendar Error-CAN'T OPEN THIS ITEM. UNKNOWN ERROR Bluze Outlook - Calandaring 4 June 14th 06 05:35 AM
Outlook 2003 error message [email protected] Outlook and VBA 0 May 15th 06 12:23 AM
Error starting Outlook 2003 izlopez Outlook - Installation 5 May 7th 06 11:15 PM
Outlook 2003: While importing contacts from Excel 2003, ISAM error Juzar Outlook - Using Contacts 1 April 10th 06 11:20 PM
0x80042108 Error with Outlook 2003 / SBS 2003 Premium/ ISA Server S.W. Outlook - Installation 0 January 16th 06 08:53 PM


All times are GMT +1. The time now is 09:27 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.