+ Reply to Thread
Results 1 to 2 of 2

Need VBA Macro to display custom Error Message

  1. #1
    Registered User
    Join Date
    06-08-2015
    Location
    Pennsylvania
    MS-Off Ver
    2013
    Posts
    9

    Need VBA Macro to display custom Error Message

    Hi Guys,

    New here, but I'm stuck with one of my Macros. I got source code online to automate sending filtered cells in Excel to outlook with the press of a button, which is awesome, but I need a little help.

    My Macro is working, and sends the filtered files to the proper addresses in the "Mailinfo" tab. My problem, however, comes with not knowing if an email HASN'T been sent.

    Here is what Happens:

    When there is no corresponding email address for an entry in the "MailInfo" tab, obviously it doesn't send an email to that person. What I want, however, is an error message to pop up saying, "The following poeple did not recieve an email beause they were not in the correct tab", while STILL sending automated emails to the rest of the list.

    Now the code is something like "On Error Resume Next", I still want it to resume, but I want a message box first so I can not who was on the tab, but will not be getting an email.

    For reference, I attatched an easy sample file with my macro.

    Any and all help is greatly appreciated!

    J
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Need VBA Macro to display custom Error Message

    Hi JChesney

    See if this works for you
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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. Macro to Search for Error Message and Display solution result.
    By Ally1982 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2014, 12:22 PM
  2. [SOLVED] macro to display word art error message if certain value is selected
    By a2424 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2013, 10:45 PM
  3. If cell is empty and macro is pressed display error message.
    By karol2234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-20-2012, 01:47 PM
  4. How do I display an error message if Find Macro is unsuccessful
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-29-2008, 07:25 PM
  5. Why error message when trying to display custom view?
    By creativeops in forum Excel General
    Replies: 2
    Last Post: 01-09-2006, 06:00 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