+ Reply to Thread
Results 1 to 2 of 2

How do you handle errors from another workbook?

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    77

    How do you handle errors from another workbook?

    If I have a macro that's changing the value of another workbook, and that triggers a Worksheet change event which then causes an error, my original macro stops regardless of whether or not I have used 'On Error Resume Next'. Is there a way to handle these errors?

    Thanks!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: How do you handle errors from another workbook?

    Switch off event handling before you change the other workbook.

    Or, if the other workbook needs to execute the change event handler code, you need to fix the error handling in the other workbook so it doesn't crash your code.

    .... and that triggers a Worksheet change event which then causes an error
    How does it trigger an error? What error does it trigger? Why doesn't your error handling cope with it?

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How do i handle N/A errors in an IF formula?
    By jonathanjjames in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-04-2013, 04:09 AM
  2. how to handle errors from attempting to open files that are not there
    By CantripGhost in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2011, 12:09 PM
  3. Handle errors due to dates that do not exist.
    By BigBas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2010, 03:04 PM
  4. Best way to handle errors from MATCH
    By nls in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-01-2010, 02:17 PM
  5. Formula to handle more than seven possible errors
    By mjhopler in forum Excel General
    Replies: 1
    Last Post: 03-05-2010, 12:30 PM

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