+ Reply to Thread
Results 1 to 8 of 8

auto sending mail from excel file according to specific IF CONDITION or TEXT

  1. #1
    Registered User
    Join Date
    01-11-2021
    Location
    Bangladesh
    MS-Off Ver
    2016
    Posts
    4

    auto sending mail from excel file according to specific IF CONDITION or TEXT

    Hello there, I need some help with my excel file please.

    I have attached my excel file here. I have made this excel file to track my instruments at my laboratory....

    I want to set auto email to one specific mail address through outlook according to the COLUMN J condition.

    I want to set the mail "Subject" as the column J values.

    I want to add column B content in the mail body.

    I have tried some vba code but I just cant make it working.
    Attached Files Attached Files
    Last edited by bandiota; 01-22-2021 at 11:32 PM. Reason: need to add some specific information

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: auto sending mail from excel file according to specific IF CONDITION or TEXT

    I have tried some vba code but I just cant make it working.
    Please supply what you have tried so we can help you get it to work.

  3. #3
    Registered User
    Join Date
    01-11-2021
    Location
    Bangladesh
    MS-Off Ver
    2016
    Posts
    4

    Re: auto sending mail from excel file according to specific IF CONDITION or TEXT

    I am attaching another file here......you can see when you open it.

    I am just stuck.cant go any further...

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: auto sending mail from excel file according to specific IF CONDITION or TEXT

    You can use this generic code for your requirements.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-11-2021
    Location
    Bangladesh
    MS-Off Ver
    2016
    Posts
    4

    Re: auto sending mail from excel file according to specific IF CONDITION or TEXT

    Thanks a lot .........Its working nicely...though I changed to "Calibration Required" from "calibrated"..............

    Can I add one more IF statement there for the "Warning!........"

    There were 3 statements..... and I wanted Calibration Required and Warning calibration overdue to be reminded when date meets.

    how can i change the email body information....If I wanted the email body like this way......

    Equipment Name (B1): HPLC Binary gradient system with PDA, RF detector along with amino acid analyses. (B2)
    Model (C1) : Nexera XR (C2)
    Instrument ID (OLD) (D1): QCE-1.2 (D2)
    Calibration Expiry date: (I2)


    Is that possible ???

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: auto sending mail from excel file according to specific IF CONDITION or TEXT

    Try this, it shows how to combine the cells for the body.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-11-2021
    Location
    Bangladesh
    MS-Off Ver
    2016
    Posts
    4

    Re: auto sending mail from excel file according to specific IF CONDITION or TEXT

    To be honest A Thank would be so small this help.may be its nothing to you but it was too great for me.......Thanks again.

  8. #8
    Registered User
    Join Date
    01-24-2021
    Location
    Istanbul
    MS-Off Ver
    2016
    Posts
    4

    Re: auto sending mail from excel file according to specific IF CONDITION or TEXT

    Quote Originally Posted by davesexcel View Post
    Try this, it shows how to combine the cells for the body.

    Please Login or Register  to view this content.

    Hi Dave,

    I am not using "Outlook". Is it possible to change the code to read the mail application whatever he has in his computer instead of outlook.

    Thank 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. Sending Mail via VBA while auto fitting the table
    By GreenTee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-17-2015, 02:44 PM
  2. [SOLVED] screenshot text file and embed in outlook mail through excel with mail info
    By bmbalamurali in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 01-11-2015, 08:21 PM
  3. Replies: 0
    Last Post: 01-31-2013, 06:15 AM
  4. Replies: 1
    Last Post: 09-04-2012, 06:17 PM
  5. Replies: 1
    Last Post: 09-04-2012, 06:16 PM
  6. Replies: 2
    Last Post: 11-25-2005, 06:50 AM
  7. Sending mail with Excel file attached, and cell-value inserted in Subject line
    By arunjoshi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2005, 09:41 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