View Single Post
  #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?
Ads