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 - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

OLK2007 : The Oper Failed : Application.CreateObject("MAPI.Session



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 6th 07, 10:48 PM posted to microsoft.public.outlook.program_forms
Bill Billmire
external usenet poster
 
Posts: 4
Default OLK2007 : The Oper Failed : Application.CreateObject("MAPI.Session

Hello,

In previous versions of Outlook (e.g., 2000, XP, 2003) the statement
Application.CreateObject("MAPI.Session") would correctly return the
MAPI.Session.
In Outlook 2007 this statement errors out indicating "The Operation Failed".

What can I do to make it work in Outlook 2007?

Thanks in advance...
--
Bill Billmire
  #2  
Old January 6th 07, 11:39 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default OLK2007 : The Oper Failed : Application.CreateObject("MAPI.Session

You would need to download and install the CDO component, which is not included with Outlook 2007. http://www.microsoft.com/downloads/d...displaylang=en

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

"Bill Billmire" wrote in message ...
Hello,

In previous versions of Outlook (e.g., 2000, XP, 2003) the statement
Application.CreateObject("MAPI.Session") would correctly return the
MAPI.Session.
In Outlook 2007 this statement errors out indicating "The Operation Failed".

What can I do to make it work in Outlook 2007?

Thanks in advance...
--
Bill Billmire

  #3  
Old January 7th 07, 01:16 AM posted to microsoft.public.outlook.program_forms
Bill Billmire
external usenet poster
 
Posts: 4
Default OLK2007 : The Oper Failed : Application.CreateObject("MAPI.Ses

Thanks Sue (that worked) - I was researching this issue and found Microsoft's
reference to removing CDO on installation of Office 2007; and then, they
seemed to indicate (elude) that they had done away with the need for CDO...
"Enhancements to Outlook objects and collections". "Because the Outlook
2007 object model includes more than 85 new objects", etc. I was assuming
there would be other measures to perform similar tasks that were handled by
the CDO API.

On another topic... What do you recommend for a development environment for
VBScripting (these days - Jan 2007)? It would be great to be able to use the
..net environment (or something comparable) to code & debug in. OLK2007 seems
to include a Visual Basic "tool" in the form developer interface, but I have
not been successful in "porting" my VBScript into that.
--
Bill Billmire


"Sue Mosher [MVP-Outlook]" wrote:

You would need to download and install the CDO component, which is not included with Outlook 2007. http://www.microsoft.com/downloads/d...displaylang=en

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

"Bill Billmire" wrote in message ...
Hello,

In previous versions of Outlook (e.g., 2000, XP, 2003) the statement
Application.CreateObject("MAPI.Session") would correctly return the
MAPI.Session.
In Outlook 2007 this statement errors out indicating "The Operation Failed".

What can I do to make it work in Outlook 2007?

Thanks in advance...
--
Bill Billmire


  #4  
Old January 7th 07, 02:02 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default OLK2007 : The Oper Failed : Application.CreateObject("MAPI.Ses

The enhanced Outlook object model can indeed do most (but not all) of what CDO 1.21 can do. However, that doesn't eliminate the need to actually write the code to work with the new objects that provide that functionality.

I use Outlook VBA to prototype and test all my VBScript code for Outlook forms. Making the minor adjustments to convert VBA to VBScript takes almost no time at all.

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

"Bill Billmire" wrote in message ...
Thanks Sue (that worked) - I was researching this issue and found Microsoft's
reference to removing CDO on installation of Office 2007; and then, they
seemed to indicate (elude) that they had done away with the need for CDO...
"Enhancements to Outlook objects and collections". "Because the Outlook
2007 object model includes more than 85 new objects", etc. I was assuming
there would be other measures to perform similar tasks that were handled by
the CDO API.

On another topic... What do you recommend for a development environment for
VBScripting (these days - Jan 2007)? It would be great to be able to use the
.net environment (or something comparable) to code & debug in. OLK2007 seems
to include a Visual Basic "tool" in the form developer interface, but I have
not been successful in "porting" my VBScript into that.
--
Bill Billmire


"Sue Mosher [MVP-Outlook]" wrote:

You would need to download and install the CDO component, which is not included with Outlook 2007. http://www.microsoft.com/downloads/d...displaylang=en

"Bill Billmire" wrote in message ...
Hello,

In previous versions of Outlook (e.g., 2000, XP, 2003) the statement
Application.CreateObject("MAPI.Session") would correctly return the
MAPI.Session.
In Outlook 2007 this statement errors out indicating "The Operation Failed".

What can I do to make it work in Outlook 2007?

Thanks in advance...
--
Bill Billmire


 




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
"Office (application) not installed for this user" slatons Outlook - Installation 0 December 2nd 06 12:11 AM
How do I fix a "MAPI" error that will not allow forms to publish? Shelly Outlook - Using Forms 2 September 2nd 06 02:00 AM
Change default application used by the "Call Contact" feature Poppu Outlook - General Queries 3 September 1st 06 01:56 AM
Error creating an MAPI session Dominique Schroeder Outlook - Using Forms 1 March 7th 06 03:25 PM


All times are GMT +1. The time now is 01:39 PM.


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.