1. Here's a thread that needs an answer: Outlook Office 365 cached mode crashing
    Dismiss Notice

ThisOutlookSession debug

Discussion in 'Slipstick.com: VBA and Programming Articles' started by Andrzej, Mar 28, 2017.

  1. Andrzej

    Andrzej

    Member
    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
     
  2. Diane Poremsky

    Diane Poremsky

    Senior Member
    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.
     
  3. Andrzej

    Andrzej

    Member
    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 ...

    Andrzej
     
  4. Diane Poremsky

    Diane Poremsky

    Senior Member
    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.
     
Loading...

Share This Page