Consulting

Results 1 to 3 of 3

Thread: Automatic Weekly Email

  1. #1
    VBAX Regular
    Joined
    Nov 2011
    Location
    Houston, TX
    Posts
    27
    Location

    Question Automatic Weekly Email

    Good Afternoon,

    Every Friday morning at 8:00 I send an email to our service team asking them for their ETA to the customer locations for the following week.

    I would like to either set this up as a simple recurring item (kind of like a recurring task or calendar event). Or set up a VBA code that will automatically send the email every Friday. Either way works for me. I just can’t find anything on how to do either one.

    Can someone please point me in the right direction?

    Thanks in advance for any help.
    Dragon

    "You don't need to take a person's advice to make them feel good; just ask for it." ~ Laurence J. Peter

  2. #2
    VBAX Expert Logit's Avatar
    Joined
    Sep 2016
    Posts
    613
    Location
    support.microsoft.com/en-us/kb/239087



    Search the internet for : outlook auto send recurring email

  3. #3
    VBAX Mentor skatonni's Avatar
    Joined
    Jun 2006
    Posts
    347
    Location
    A combination of a recurring task "ETA mail" or appointment with a reminder to trigger some VBA in ThisOutlookSession.

    Option Explicit
    
    Private Sub Application_Reminder(ByVal Item As Object)
    
    Dim objMsg As mailItem
     
    If Item.Class = oltask Then
    
        If InStr(Item.Subject, "ETA mail") > 0 Then
           
            Set objMsg = CreateItem(olMailItem)
        
            objMsg.To = "someone @ somewhere.com"
            objMsg.Subject = "Send ETA"
            objMsg.body = "It is friday."
            
            objMsg.Display
            ' or when tested
            ' objMsg.Send
            
        End If
    
    End If
    
    Set objMsg = Nothing
    
    End Sub
    If you do not want to see the reminder, investigate BeforeReminderShow to dismiss it.
    To debug, mouse-click anywhere in the code. Press F8 repeatedly to step through the code. http://www.cpearson.com/excel/DebuggingVBA.aspx

    If your problem has been solved in your thread, mark the thread "Solved" by going to the "Thread Tools" dropdown at the top of the thread. You might also consider rating the thread by going to the "Rate Thread" dropdown.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •