![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |