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

CDO Error (class not registered)



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 14th 07, 03:32 AM posted to microsoft.public.outlook.program_vba
Tony
external usenet poster
 
Posts: 73
Default CDO Error (class not registered)

I write a VBScript to call CDO, but I get an error message "class is not
registered, CDO.Configuration.1". I have re-registered the cdo.dll and
cdosys.dll. I have checked the registry and the CDO.Configuration.1 exist
"{CD000002-8B95-11D1-82DB-00C04FB1625D}"

my script:
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "
objMessage.To = "
objMessage.TextBody = "This is some sample message text."
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

Error when running
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

This is my PC info
AMD Athlon 64 X2
Outlook 2003 SP2
Exchange System Manager

  #2  
Old August 14th 07, 07:16 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default CDO Error (class not registered)

Use are using CDOEX objects, not CDO 1.21 objects (which are all in the MAPI
namespace). Code using CDOEX must run on the Exchange Server itself.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"tony" wrote:

I write a VBScript to call CDO, but I get an error message "class is not
registered, CDO.Configuration.1". I have re-registered the cdo.dll and
cdosys.dll. I have checked the registry and the CDO.Configuration.1 exist
"{CD000002-8B95-11D1-82DB-00C04FB1625D}"

my script:
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "
objMessage.To = "
objMessage.TextBody = "This is some sample message text."
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

Error when running
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

This is my PC info
AMD Athlon 64 X2
Outlook 2003 SP2
Exchange System Manager

 




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
Error message: interface not registered. stajl5 Outlook - General Queries 0 May 13th 07 05:33 PM
Error message: interface not registered. Aaron Thorpe Outlook - General Queries 1 April 7th 07 02:40 PM
Error message: interface not registered. mark Outlook - General Queries 0 April 6th 07 12:02 PM
Error message: interface not registered. jmcgrath4370 Outlook - General Queries 0 September 5th 06 02:40 PM
on Startup of Outlook, says "Class not registered" byronious_1 Outlook - Installation 0 February 19th 06 07:32 PM


All times are GMT +1. The time now is 08:02 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.