+ Reply to Thread
Results 1 to 5 of 5

I keep getting random bugs in a fairly complex code (for me neways)... works sometimes tho

  1. #1
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    I keep getting random bugs in a fairly complex code (for me neways)... works sometimes tho

    Is there a way to make VBA "watch" while a code is running, and if an error occurs, skip that part or do something besides Bug? Just i have a long somewhat complicated (for me neways) code, and other people use the Macro.. but if something bugs, which it does qutie often, it freezes the code partway through which messes a whole lot of stuff up.

  2. #2
    Registered User
    Join Date
    01-19-2009
    Location
    UK
    MS-Off Ver
    2007
    Posts
    60

    Re: I keep getting random bugs in a fairly complex code (for me neways)... works sometimes

    It might be worth posting your code, you might be able to get help avoiding those errors in the first place rather than deal with them as they occur.

    Anyhow, you can use the On Error statement to catch your errors and deal with them appropriately:

    Please Login or Register  to view this content.
    Go here for more info:

    http://www.cpearson.com/excel/errorhandling.htm
    .
    - AKK9 -

  3. #3
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: I keep getting random bugs in a fairly complex code (for me neways)... works sometimes

    Here is the code...

    I know that there are a lot of select this and select that that i could get rid of, but it doesnt seem to work as well...

    Let me know what you can do.

    Please keep in mind that 95% of the time the below code works absolutely perfectly....

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: I keep getting random bugs in a fairly complex code (for me neways)... works sometimes

    another code that seems to pop up with bugs every once in a while is...

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: I keep getting random bugs in a fairly complex code (for me neways)... works sometimes

    can you offer any help?

+ 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