+ Reply to Thread
Results 1 to 17 of 17

Send email from excel using outlook on a specific date

  1. #1
    Registered User
    Join Date
    07-02-2014
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    21

    Send email from excel using outlook on a specific date

    Hey team excel!

    I am new here and I promise I did a lot of searching, this site, google, youtube but for some reason I cant seem to get a clear answer on this one.

    The task seems simple enough but I am not good at writing my own code just yet. Using excel and outlook 2010 I have a spread sheet I open everyday. I am in sales and its a lead monitoring and tracking excel sheet that I use everyday. So excel and outlook remaining open is not an issue...

    I simply have rows of customers with their details such as

    name, email, date last contacted, date to follow up on.

    How do I get code that will send an automated email using outlook to that specific customer, preferably with their name in the email, when the follow up date I chose arrives?

    So for example, I talked to David today and I know I would like to just send a "checking in" generic email on a date I selected in a few days.


    How do I get excel and outlook to do this automatically?

    This is driving me bananas having to keep up with all these little check in emails. Normally I can find my answer with research but I'm having to reach out to you guru's on this one.

    thanks in advance to anyone who can help..

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Send email from excel using outlook on a specific date

    http://www.*****-clicks.com/excel/olAutomating.htm
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Send email from excel using outlook on a specific date

    http://www.rondebruin.nl/win/s1/outlook/mail.htm

  4. #4
    Registered User
    Join Date
    07-02-2014
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    21

    Re: Send email from excel using outlook on a specific date

    Thank you for your reply..

    I have found that before but I didnt see anything that says the mail message will be sent on a specific date...?


    or am I missing something?

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Send email from excel using outlook on a specific date

    or
    Please Login or Register  to view this content.
    for automatically sending use
    Please Login or Register  to view this content.
    Regards, John55
    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.

    ...enjoy -funny parrots-

  6. #6
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Send email from excel using outlook on a specific date

    if date=dateserial(2014,7,2) then

  7. #7
    Registered User
    Join Date
    07-02-2014
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    21

    Re: Send email from excel using outlook on a specific date

    Thanks, I will give this a go as soon as I can.. I got a busy day away from work for a lot of the day but I am excited to try this.

  8. #8
    Registered User
    Join Date
    07-02-2014
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    21

    Re: Send email from excel using outlook on a specific date

    Okay so thinking about this code you provided I guess I dont even really know where to start? Whats the steps are there to set up the code. I mean I am aware of the developer tab and visual basic button but what exactly to do after that I am shaky at best.

    this may help out..

    In column D is where the first name of the customer is,
    In column M is where the date I will enter when to follow up next.

    So does this code have to reference the M row as a whole or... IDK how it works..

    Sorry for being a nubie..

  9. #9
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Send email from excel using outlook on a specific date

    hi,
    no problem! please see this http://www.excel-easy.com/vba/create-a-macro.html (create a test file and play with it! )
    then press Alt+F11 and see the code.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-02-2014
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    21

    Re: Send email from excel using outlook on a specific date

    Hey buddy.. thanks for you help..

    Okay I think I understand whats going on..

    so the = Date will pick up on what ever the current date is? Once the button is pressed all dates that match today are sent?

    change .display to .send and that will automate the emails.

  11. #11
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Send email from excel using outlook on a specific date

    it checks the date from column M, if it's today, the email is displayed (if you use .display) or sent if you use .send
    hope it helps you!

  12. #12
    Registered User
    Join Date
    07-02-2014
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    21

    Re: Send email from excel using outlook on a specific date

    gotcha..

    why is this needed?

    Sub TestName()
    '
    ' TestName Macro
    '
    ' Keyboard Shortcut: Ctrl+Shift+D
    '
    ChDir "C:\Users\Eyeson\Desktop"
    ActiveWorkbook.SaveAs Filename:="C:\Users\Eyeson\Desktop\test1-1.xlsm", _
    FileFormat:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
    Range("B2").Select
    ActiveCell.FormulaR1C1 = "[email protected]"
    Range("B3").Select
    ActiveCell.FormulaR1C1 = "[email protected]"
    Range("B6").Select
    Columns("B:B").ColumnWidth = 25.57
    End Sub


    what is R1C1 referencing?

  13. #13
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Send email from excel using outlook on a specific date

    Hi eyeson,

    first thing you do, please add code tags around yr code, I know you have 6 posts only but please see the forum rules.
    then ref yr question, see http://excelmate.wordpress.com/2013/...e-style-vs-a1/
    and then, if you are happy with the solution provided, please mark the thread as "Solved". thx

  14. #14
    Registered User
    Join Date
    07-02-2014
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    21

    Re: Send email from excel using outlook on a specific date

    Hey,

    Okay no problem, thank you! I just got to apply the code to my sheet.. I'm working on this as we speak..

  15. #15
    Registered User
    Join Date
    07-02-2014
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    21

    Re: Send email from excel using outlook on a specific date

    john55


    Hey so as I start to understand this more the question I have now is.

    In the file you created I see the code and got it to work.

    When I create a button in my own document it asks if I want to create a macro. But in your example I dont see any macro's listed when I click on the macro's button in excel.

    Im not sure how this is accomplished?

    In your example how is the VB code started by hitting the button you created?

    Thanks

  16. #16
    Registered User
    Join Date
    07-02-2014
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    21

    Re: Send email from excel using outlook on a specific date

    Never mind bud.. I got it figured out.. THIS HAS BEEN SOLVED!! bravo sir.. thank you VERY much..

  17. #17
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Send email from excel using outlook on a specific date

    You're welcome.
    k, now goto top-> Thread Tools -> Mark the thread as Solved.
    thx!

    cheers

+ 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: 06-05-2013, 04:31 AM
  2. Send Email on a specific date and time using Excel Only.
    By j_panky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-28-2013, 12:09 PM
  3. Replies: 5
    Last Post: 02-22-2013, 02:00 AM
  4. Excel Macro to send Email on a specific date
    By 7jitesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-07-2011, 12:09 PM
  5. Automatically send an email from excel with specific data on specific date.
    By Angela1607 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-04-2009, 08:11 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