+ Reply to Thread
Results 1 to 3 of 3

Send email upon error in macro

  1. #1
    Registered User
    Join Date
    12-24-2012
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Send email upon error in macro

    Is it at all possible to code a macro to send me an email when an error occurs detailing the fault?

    Any help would be appreciated.

    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,467

    Re: Send email upon error in macro

    Shouldn't be too difficult. You'd need to have an error handling routine in each subroutine and, in the error handler, pass the details of the error to a subroutine or function which generates the email.

    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


  3. #3
    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,467

    Re: Send email upon error in macro

    Thanks for the rep

    It's been a while ... do you want to share your solution?

    Regards, TMS

+ 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