+ Reply to Thread
Results 1 to 7 of 7

Recurring e-Mail Message

  1. #1
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Recurring e-Mail Message

    Hello,

    I would like to send an e-Mail message to my team every day at 12:00 A.M.

    I can't find it in the options, how would I VBA code this?

  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: Recurring e-Mail Message

    Hi,

    One way - by running the eMail macro below. You might prefer to put it in the workbook open event so that it runs automatically

    Note, this requires MS Outlook as the email client. For a generic (software independent SMTP version) then post again.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by Richard Buttrey; 04-09-2014 at 01:33 PM.
    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
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Re: Recurring e-Mail Message

    Workbook Open? I won't be using this in Excel.

    Would this work in Outlook VBA?

  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: Recurring e-Mail Message

    Sorry, I hadn't spotted it was in the Outlook forum.

    The code as written won't work in Outlook, only Excel. I'm not familiar with VBA for Outlook so can't comment further although no doubt there will be some equivalent functionality.

  5. #5
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Re: Recurring e-Mail Message

    Well, thanks for trying!

  6. #6
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Re: Recurring e-Mail Message

    FYI - the SendEmail Sub works to create the message.

    So I only need the command to have it send automatically at the determined time.

  7. #7
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    Re: Recurring e-Mail Message

    I found this on another forum:

    I know this post is old, but I thought I'd answer anyway. Outlook does not have an OnTime method, but Excel does. That is why it works in Excel but not Outlook.

    To simulate the OnTime Method, create a task with a reminder for the time you want the macro to run. Use a unique Subject string for the task. Hook the BeforeReminderShow Event and check for the unique string in the Subject that you specified when you created the task. If it's a match, run the macro you wanted to run at that time. Also, set Cancel = True so the reminder doesn't actually fire (it already did it's job so it doesn't need to actually fire).
    __________________

+ 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. copying mail message to excel
    By pankajy18 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-02-2013, 10:15 AM
  2. Extracting mail message(outlook) table in the message body
    By andywsw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2012, 10:14 PM
  3. Send Mail Message
    By dsrt16 in forum Excel General
    Replies: 6
    Last Post: 11-15-2008, 05:27 PM
  4. Spreadsheet saved as mail message
    By SmokeEater in forum Excel General
    Replies: 0
    Last Post: 07-15-2008, 11:23 AM
  5. E-Mail Message at Completion - OUTLOOK
    By JEFF in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2005, 06:05 PM

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