Dear Forum Users,
Does anyone know how to debug the code written in ThisOutlookSession module?
I am using MsgBox function to catch the bug but it's very insufficient method...
Regards,
Andrzej
I use msgbox when i want to see if it is working or to get the values without going back to the editor and i use debug.print to write values in the immediate window.
Dear Diane,
Unfortunately I still cannot debug the code. I need relatively simple answer:
What is the name of rule executed? How to read rules object name?
The only object I have in ThisOutlookSession is mailitem ...
The macro at Create a List of Rules shows how to read rules using vba. Not sure what code you need to get the name of a specific rule though. Sorry.
If the code is complicated, an error handler that writes the line name and other information to the immediate window or a text file could be helpful. I don't think i have any code samples that do that though.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.