+ Reply to Thread
Results 1 to 2 of 2

How do I debug run time errors

  1. #1
    Valued Forum Contributor
    Join Date
    11-16-2004
    Location
    Devon UK
    MS-Off Ver
    2010
    Posts
    357

    How do I debug run time errors

    I occasionally get a run time error on my code (picture of the error message attached) when this comes up the only option I have is 'exit' which doesn't allow me to see where in the code the error happened. This is strange as it has only recently started happening on code I have been using for a long while and it doesn't always happen, I can run the code numerous times without a problem then every now and again it will occur. I have done some searching and I think it has something to do with when the code accesses outlook to write an email and judging by the place the code stops this guess fits. I have tried stepping through my code but then no error occurs.

    Is there a specific way to debug or track down this error?
    Attached Images Attached Images

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How do I debug run time errors

    Hi,

    It would be more meaningful and useful if you could attach the workbook in question so that we can see the problem in context.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1