+ Reply to Thread
Results 1 to 4 of 4

Excel email with three conditions

  1. #1
    Registered User
    Join Date
    06-05-2006
    Posts
    16

    Excel email with three conditions

    I have an email macro (Ron DeBruin) that works great. If the cell in column H = "NO" and if the corresponding cell in column L <> "SENT" the code will continue to loop until it finds a cell in column H = "NO" and a blank cell in column L. The code is as follows:
    Please Login or Register  to view this content.
    However, is it possible to modify this line so that the macro will still look to column H for a "NO" but will also look to column L for either a "SENT" or an "N/A"? My skills are scarce, at best and have had no luck on my own.

    Any help would be most appreciated.

    Thanks.

    Cindy

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208

    Re: Excel email with three conditions

    Hi Cindy. Try this:

    Please Login or Register  to view this content.
    HTH

    Jason

  3. #3
    Registered User
    Join Date
    06-05-2006
    Posts
    16

    Re: Excel email with three conditions

    Hi, Jason:

    Thanks for your suggestion. When I modified the code as suggested, it launched email for every row of the spreadsheet, whether there was anything in cell.Offset(0, 7) or not. Phew - quite a challenge shutting it down!

    Good suggestion, just not the right one.

    Thanks, anyways.

  4. #4
    Registered User
    Join Date
    06-05-2006
    Posts
    16

    Re: Excel email with three conditions-SOLVED

    Solved - thanks for your efforts!

+ 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