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

Even simple macros fail with Automation Error (outlook 2003)



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 5th 08, 06:41 AM posted to microsoft.public.outlook.program_vba
mmapes
external usenet poster
 
Posts: 4
Default Even simple macros fail with Automation Error (outlook 2003)

I can't get macros to run in Outlook. Even the sample macros from the help
file fail. Even this simple macro

Sub MoveItems()
Dim myOlApp As New Outlook.Application
Dim myNameSpace As Outlook.NameSpace
Set myNameSpace = myOlApp.GetNamespace("MAPI")
End Sub

results in

Run-time error '-2147467259(80004005)':
Automation error
Unspecified error

When I step into the macro, it fails on line 3: Set myNameSpace...

Anyone have any recommendations? I upgraded from Win 2000 to Win XP, but was
able to keep Outlook 2003. I also tried the Office 2007 upgrade, changed my
mind, and reinstalled Outlook 2003. Would any of that have cause the wrong
scripting engine to run? Any ideas at all?
  #2  
Old December 5th 08, 03:51 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Even simple macros fail with Automation Error (outlook 2003)

Certainly an upgrade from Office 2003 to 2007 and then back again could mess
up lots of things. In general the MVPs recommend completely uninstalling
Office 2003 before installing Office 2007 and then creating a brand new
profile for Outlook 2007 (not copying an existing profile).

I'd try the Office repair and see if that helps.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"mmapes" wrote in message
...
I can't get macros to run in Outlook. Even the sample macros from the help
file fail. Even this simple macro

Sub MoveItems()
Dim myOlApp As New Outlook.Application
Dim myNameSpace As Outlook.NameSpace
Set myNameSpace = myOlApp.GetNamespace("MAPI")
End Sub

results in

Run-time error '-2147467259(80004005)':
Automation error
Unspecified error

When I step into the macro, it fails on line 3: Set myNameSpace...

Anyone have any recommendations? I upgraded from Win 2000 to Win XP, but
was
able to keep Outlook 2003. I also tried the Office 2007 upgrade, changed
my
mind, and reinstalled Outlook 2003. Would any of that have cause the wrong
scripting engine to run? Any ideas at all?


 




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
automation, macros ... oldyork90 Outlook - General Queries 1 September 12th 08 02:52 PM
Outlook Automation Automation Problem Out of Memory MikeA[_2_] Outlook and VBA 7 July 30th 07 03:31 PM
error mess in outlook after installing office 2007; operation fail dmrg Outlook - Installation 0 May 23rd 07 03:18 AM
2 simple macros - create task from email and move email to folder [email protected] Outlook and VBA 5 February 4th 07 10:57 AM
Automation Error Lightknight Outlook and VBA 3 April 4th 06 03:46 PM


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