Results 1 to 7 of 7

Assistance Required - Using VBA to send reminder emails.

Threaded View

  1. #1
    Registered User
    Join Date
    06-11-2016
    Location
    Singapore
    MS-Off Ver
    microsoft 2010
    Posts
    7

    Assistance Required - Using VBA to send reminder emails.

    Hi Experts!

    I am new to VBA and currently I am exploring using VBA to help with sending reminder by just clicking one button. I have finished creating the coding for sending email via outlook but now I couldn't fix certain issue as follow:

    - To send reminder email for certain date. Example if the due date is today, the program can auto detect/lookup the due date with today date in that column and send out the reminder email without sending email for other dates.
    - To a command button which by clicking it, it will prompt the system to send email.


    Below is the excel listing and VBA code

    Column 1 is Name

    Column 2 is Prof

    Column 3 is Email

    Column 4 is Due Date

    -----------------------------------------------------------


     Sub SendMail()
    
    Dim OlApp As Outlook.Application
     Dim OlMail As Outlook.MailItem
    
    For i = 2 To 4
    
    Set OlApp = New Outlook.Application
     Set OlMail = OlApp.CreateItem(olMailItem)
    
    With OlMail
     .To = Cells(i, 3).Value
     .Subject = "Oral report Submission for " & Cells(i, 1).Value
     .Body = "Dear " & Cells(i, 2).Value & "," & vbNewLine & vbNewLine & "This is a gentle reminder that student " & Cells(i, 1).Value & " oral report is going to due on " & Cells(i, 4).Value
     .Display
    
    End With
    
    Set OlMail = Nothing
     Set OlApp = Nothing
    
    Next
    
    End Sub
    Your Help is greatly appreciated!
    Last edited by FDibbins; 06-13-2016 at 01:49 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to get Excel to send reminder emails to Outlook
    By bluewitch in forum Excel General
    Replies: 6
    Last Post: 08-10-2015, 01:35 PM
  2. Excel vba to auto-send customer emails (duplicate emails issue)
    By nadz84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-29-2015, 10:08 AM
  3. Send Emails once expiry date is reached, and generate report based on emails sent
    By demonicscorpion in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2014, 05:36 AM
  4. Send outlook emails with message in cells to individual emails associated with them
    By abinayan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2011, 06:11 AM
  5. Sending macro emails using excel: Send emails with their passwords.
    By loveisblind in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2009, 03:16 PM
  6. [SOLVED] Reminder Emails
    By little_rascal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2006, 04:30 AM
  7. [SOLVED] Can excel send reminder emails on dates entered in a wookbook?
    By Doubting_her_boss in forum Excel General
    Replies: 2
    Last Post: 10-27-2005, 05: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