+ Reply to Thread
Results 1 to 6 of 6

email from excel

  1. #1
    Registered User
    Join Date
    05-14-2021
    Location
    India
    MS-Off Ver
    Office 10
    Posts
    23

    email from excel

    Hi,
    In attachment, I have an code which sends email to the person once the value in column B reaches >200 as on sheet name "MoreThenOneFormulaValueChange"

    I need small correction and I am not able to do it.

    In sheet "New requirement", I have added one more column L "Target"

    I need code to be modified, if the value in Colum B reaches above the value in Column L.

    e.g.
    If B3 is greater than L3 send email
    If B4 is greater than L4 send email
    If B5 is greater than L5 send email
    If B6 is greater than L6 send email
    If B7 is greater than L7 send email

    Also the code running till 7th row of the data.

    I may add many column in future. Hence the code should run till end of the data range in column A.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: email from excel

    Hi,

    Try this code
    Note the reference to Sheet3 is the VBA sheet CODE name for the tab name "New Requirement", Change that as necessary if your production workbook is different.


    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-14-2021
    Location
    India
    MS-Off Ver
    Office 10
    Posts
    23

    Re: email from excel

    Hi Richard,
    Thank you very much for your code. Need one more modification.

    Once email sent then it does not send email again for same records.

    Hence modification need to be done if any time number gats changed whether in column B or Column L and if value in B is greater than L in specific row email to be sent.

    You can remove the code for Status in column C

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: email from excel

    What do you mean by 'the same records'. The macro displays all five emails for the five records. Have you changed the .Display to .Send?

  5. #5
    Registered User
    Join Date
    05-14-2021
    Location
    India
    MS-Off Ver
    Office 10
    Posts
    23

    Re: email from excel

    Yes I have changed the .Display to .Send

    I am sorry. Same records means, eg. B2 is > L2 (after changing the any number in B2 or L2 and the result is B2 > L2) then send email.

  6. #6
    Registered User
    Join Date
    05-14-2021
    Location
    India
    MS-Off Ver
    Office 10
    Posts
    23

    Re: email from excel

    hi richard,
    Can you help me on this?

+ 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. Replies: 0
    Last Post: 02-11-2019, 08:45 AM
  2. [SOLVED] VBA Code To Email Unique Serial Numbers In Excel To Email Addresses In The Same Excel.
    By Nostos in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2019, 02:55 AM
  3. Crate email from Excel - Pull data from excel and Create email message
    By saravanan1981 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2016, 12:18 PM
  4. Replies: 0
    Last Post: 11-24-2015, 03:29 AM
  5. How to send email from excel using VBA with Cell Range (Including Images) as Email Body
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2014, 05:06 AM
  6. vba pull data from outlook body of email through email or subject of mail into excel
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2014, 04:37 AM
  7. Replies: 2
    Last Post: 02-14-2014, 12:03 AM

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