vb6 run time error 5 when Outlook 2007 Explorer object displayed

A

AndyK

hi all

I have a vb6 program which integrates with MS Outlook and was working fine
until the client upgraded their PC's - the OS stayed at XP Pro but Office was
upgraded from 2003 to 2007.

The app is now throwing a runtime error 5 "invalid procedure call or
argument". This is difficult for me to debug as I my dev machine is W2K so I
cannot install Office 2007 on it. But as far as I can tell the error is
occurring when the code gets to the line myExplorer.Display - this is in
response to the user double clicking a calendar item in Outlook. Just
wondering is the Explorer.Display function not supported in 2007?
 
M

Michael Bauer [MVP - Outlook]

I'd add line numbers to the code and use a proper error handler, so you
don't need just to guess where the error occurs.

on error goto err_handler
10 some
20 code
exit sub
err_handler:
msgbox "an error was raised at line " & erl

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
<http://www.vboffice.net/product.html?lang=en>


Am Wed, 31 Mar 2010 14:44:02 -0700 schrieb AndyK:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top