debuggin vb code in Outlook

L

Lars Roland

Is there any way to debug a COM addin for outlook - I get the error

"ItemsCB error: Object variable or With block not set"

When i push a button on a commandbar (the commandbar is added to
outlook, as a part of the installation of the addin). Can
I somehow compile the addin, to give a little more detailed info
about what is wrong.


Regards: Lars Roland.
 
K

Ken Slovak - [MVP - Outlook]

Run your code from within the VB IDE and then start Outlook so your addin
is connected. Then set breakpoints wherever you want or set a Watch window
to stop when an error is hit. The error you are seeing is often due to not
having all the needed project references or not properly instantiating an
object, but you can see where the error occurs in immediate mode after
hitting a breakpoint. You can also step your code after hitting a breakpoint
to find the actual line that causes the error.
 

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