Results 1 to 34 of 34

Asking help in modifying a code for email reminder

Threaded View

mindy2017 Asking help in modifying a... 08-13-2018, 09:53 PM
meabrams Re: Asking help in modifying... 08-13-2018, 10:19 PM
mindy2017 Re: Asking help in modifying... 08-13-2018, 10:39 PM
meabrams Re: Asking help in modifying... 08-13-2018, 10:52 PM
mindy2017 Re: Asking help in modifying... 08-13-2018, 11:08 PM
mindy2017 Re: Asking help in modifying... 08-13-2018, 11:11 PM
meabrams Re: Asking help in modifying... 08-14-2018, 12:01 AM
mindy2017 Re: Asking help in modifying... 08-14-2018, 12:09 AM
meabrams Re: Asking help in modifying... 08-14-2018, 12:14 AM
mindy2017 Re: Asking help in modifying... 08-14-2018, 12:57 AM
meabrams Re: Asking help in modifying... 08-14-2018, 12:46 AM
meabrams Re: Asking help in modifying... 08-14-2018, 12:59 AM
meabrams Re: Asking help in modifying... 08-14-2018, 01:05 AM
mindy2017 Re: Asking help in modifying... 08-14-2018, 01:12 AM
mindy2017 Re: Asking help in modifying... 08-14-2018, 01:20 AM
meabrams Re: Asking help in modifying... 08-14-2018, 01:22 AM
meabrams Re: Asking help in modifying... 08-14-2018, 01:25 AM
mindy2017 Re: Asking help in modifying... 08-14-2018, 01:59 AM
meabrams Re: Asking help in modifying... 08-14-2018, 02:15 AM
meabrams Re: Asking help in modifying... 08-14-2018, 02:15 AM
mindy2017 As soon as sheet is opened... 08-14-2018, 02:28 AM
meabrams Re: Asking help in modifying... 08-14-2018, 03:04 AM
mindy2017 Re: Asking help in modifying... 08-14-2018, 03:07 PM
meabrams Re: Asking help in modifying... 08-15-2018, 12:40 AM
mindy2017 Re: Asking help in modifying... 08-16-2018, 12:36 AM
mindy2017 Re: Asking help in modifying... 08-16-2018, 10:13 AM
meabrams Re: Asking help in modifying... 08-19-2018, 05:52 AM
mindy2017 Re: Asking help in modifying... 08-20-2018, 08:28 AM
meabrams Re: Asking help in modifying... 08-20-2018, 10:04 PM
mindy2017 The date cell (B3) is linked... 08-20-2018, 10:19 PM
meabrams Re: Asking help in modifying... 08-20-2018, 10:55 PM
mindy2017 Re: Asking help in modifying... 08-21-2018, 08:55 AM
meabrams Re: Asking help in modifying... 08-27-2018, 12:41 AM
mindy2017 Re: Asking help in modifying... 08-28-2018, 01:40 PM
  1. #1
    Registered User
    Join Date
    08-13-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    25

    Asking help in modifying a code for email reminder

    I need help in modifying this code:

    Currently this code send out reminder email 28 days before the event. I now need it to also send a second reminder within 14 days of the event.


    Thank you in advance!!!!


    Sub gahallmark()

    Dim OutLookApp As Object
    Dim OutLookMailItem As Object
    Dim icounter As Integer
    Dim maildest As String

    Dim mydate1 As Date
    Dim mydate2 As Long
    Dim datetoday1 As Date
    Dim datetoday2 As Long

    Dim rownum As Long
    Dim mystr As String

    rownum = 2
    Do Until Cells(rownum, 2).Value = ""
    If Cells(rownum, 2).Value <= Date + 14 And Cells(rownum, 4).Value = "Send Reminder" Then ''change made here
    mystr = mystr & ", " & Cells(rownum, 1).Value
    End If
    rownum = rownum + 1
    Loop
    mystr = Mid(mystr, 3)

    Dim x As Long
    lastrow = Sheets("GA-Hallmark").Cells(Rows.Count, 1).End(xlUp).Row
    For x = 3 To lastrow

    mydate1 = Cells(x, 2).Value
    mydate2 = mydate1

    Cells(x, 6).Value = mydate2

    datetoday1 = Date
    datetoday2 = datetoday1

    Cells(x, 7).Value = datetoday2
    If mydate2 - datetoday2 = 28 Then
    Cells(x, 4) = "Send Reminder"
    Cells(x, 3).Font.ColorIndex = 3
    Cells(x, 3).Font.Size = 16
    Cells(x, 3).Font.Bold = True
    Cells(x, 3).Value = mydate2 - datetoday2
    End If
    Next
    Set myApp = Nothing
    Set mymail = Nothing
    Last edited by mindy2017; 08-13-2018 at 10:43 PM. Reason: added code tag

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. modifying an email code to do additional job
    By Learning ExL in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 05-24-2016, 01:20 PM
  2. Replies: 0
    Last Post: 11-24-2015, 03:29 AM
  3. Email Reminder for Highlighted Rows & Email Addresses
    By xerksis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2015, 02:46 AM
  4. VBA Code to Auto intialsend email & reminder email based on cell value
    By swk8429 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-16-2015, 06:15 AM
  5. Help modifying code of pasting range into email
    By miguelosaurio in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-11-2014, 09:10 AM
  6. Modifying VB Code/Macro to put selection into body of email instead of attachment.
    By excelstacy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-04-2011, 05:34 PM
  7. Help modifying code to check for text in a range prior to email sheet.
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-09-2009, 06:16 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