debuggin vb code in Outlook

  • Thread starter Thread starter Lars Roland
  • Start date Start date
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.
 
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.
 
Back
Top