+ Reply to Thread
Results 1 to 20 of 20

Send email if cell contains specific text

  1. #1
    Registered User
    Join Date
    01-25-2017
    Location
    Worcester
    MS-Off Ver
    2016
    Posts
    93

    Send email if cell contains specific text

    I need to generate and automatically send an email if a cell contains specific text. The text will be EE or Vodafone or 3.

    Is this possible?

  2. #2
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Send email if cell contains specific text

    Check out here & modify to your requirement.
    https://www.rondebruin.nl/win/s1/outlook/bmail9.htm
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  3. #3
    Registered User
    Join Date
    01-25-2017
    Location
    Worcester
    MS-Off Ver
    2016
    Posts
    93

    Re: Send email if cell contains specific text

    Thanks for this. Pardon my ignorance though but how do I change this to specify precise entries into a cell to generate the email rather than just a change to the cell value?

  4. #4
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Send email if cell contains specific text

    Here you go & change the highlighted code:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-25-2017
    Location
    Worcester
    MS-Off Ver
    2016
    Posts
    93

    Re: Send email if cell contains specific text

    I'm sure I must be doing something wrong but this isn't working.

    I need emails to be generated if EE, Vodafone, Three are entered into cell D20. There will be multiple email reipients but I can change those.

    When I amend this and test, nothing happens however when I debug and run the email is generated so appears to be a problem being triggered with the cell value entered.

  6. #6
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Send email if cell contains specific text

    What you entered in D20? screenshot of this please or the file itself

  7. #7
    Registered User
    Join Date
    01-25-2017
    Location
    Worcester
    MS-Off Ver
    2016
    Posts
    93

    Re: Send email if cell contains specific text

    In D20 I would enter either EE, Vodafone or Three.

    But I have tested your code with entering 0, 30 or 60 into C18 and still it doesn't appear to work. Ignore what I have in my spreadsheet as I can amend it to match the cells I need referenced. It's just not generating emails when I enter the values from your original code.

  8. #8
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Send email if cell contains specific text

    Please provide the excel file which you testing, to further assist you..

  9. #9
    Registered User
    Join Date
    01-25-2017
    Location
    Worcester
    MS-Off Ver
    2016
    Posts
    93

    Re: Send email if cell contains specific text

    Attached. Just need to add an email address to E18
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Send email if cell contains specific text

    But I have tested your code with entering 0, 30 or 60 into C18 and still it doesn't appear to work. Ignore what I have in my spreadsheet as I can amend it to match the cells I need referenced. It's just not generating emails when I enter the values from your original code
    Your requirement is not clear in post#7.
    My understanding, based on the days you entered in C18, emails will be sent?

  11. #11
    Registered User
    Join Date
    01-25-2017
    Location
    Worcester
    MS-Off Ver
    2016
    Posts
    93

    Re: Send email if cell contains specific text

    I think we're at cross purposes here.

    What I am looking for is when I enter either EE, Vodafone or Three in a specific cell (call it C18) then an email is generated. I can amend what is contained in this email.

    What your code is doing is meant to generate an email based on day ranges from 0, 30 or 60. I understand what this is doing and that it can be amended to match my requirements. BUT by copying your code, placing it in a module within my workbook and testing. It does not generate an email when any of those values are entered into C18.

  12. #12
    Registered User
    Join Date
    01-25-2017
    Location
    Worcester
    MS-Off Ver
    2016
    Posts
    93

    Re: Send email if cell contains specific text

    If you are able to provide me with the workbook with your code that works then perhaps I'll be able to amend this for my own needs?

  13. #13
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Send email if cell contains specific text

    Here you go, sample sheet with macro:
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    01-25-2017
    Location
    Worcester
    MS-Off Ver
    2016
    Posts
    93

    Re: Send email if cell contains specific text

    Thanks for this but I have already found both of these suggestions myself online and neither really answer the question I'm asking for. My first job (as should everyones) before posting on here is to Google an answer I then come here to find an expert who is able to assist if I can't self troubleshoot the problem.
    I don't think it's a very tricky request I just can't get the syntax right for it to work.
    Are you able to assist?

  15. #15
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Send email if cell contains specific text

    Here you go:
    You can find the code in sheet's & do the changes in highlighted screenshot.
    email instruction.PNG
    Attached Files Attached Files

  16. #16
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Send email if cell contains specific text

    Here you go, if any changes happen in A1 then only email will be sent.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    01-25-2017
    Location
    Worcester
    MS-Off Ver
    2016
    Posts
    93

    Re: Send email if cell contains specific text


  18. #18
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Send email if cell contains specific text

    Here you go,I made some changes which was missing:

  19. #19
    Registered User
    Join Date
    01-25-2017
    Location
    Worcester
    MS-Off Ver
    2016
    Posts
    93

    Re: Send email if cell contains specific text

    This now works

  20. #20
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Send email if cell contains specific text

    Happy to help you!!!!

+ 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. Send email when any cell in a specific column reads below a certain number...
    By afihavok in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-31-2017, 01:05 PM
  2. Macro to send specific cells to an email as text.
    By Thelps in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2015, 09:02 PM
  3. Send email when 2 cells contains specific text.
    By jurgen010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2015, 04:54 PM
  4. Protect, Save and Send email with specific text VBA
    By Mogles in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2015, 07:33 AM
  5. Clicking email links to send specific cell information
    By Dessesbo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-24-2013, 10:36 AM
  6. Send Email with Specific Text from Cells in the body
    By Will03 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2013, 12:30 PM
  7. send an email based on data in specific cell
    By savage in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2010, 11:54 AM

Tags for this Thread

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