generating emails based on a cell value reached on various rows

Blanchetdb

Board Regular
Joined
Jul 31, 2018
Messages
153
Office Version
  1. 2016
Platform
  1. Windows
First Name
Last Name
email address
registration date
#day since registration
John
Smith
john.smith@gmail.com
2018/04/29
360
Jane
Doe
jane.doe@gmail.com
2018/04/29
360

<tbody>
</tbody>
Hi,

I need to be able to send an email to a individual if the number of days between their registration date and todays date = 360 days.

I presently have spreadsheet that contains over 5000 rows where each row contains information submitted by the individual (see above)

I have the email portion figured out but I can't get the coding necessary to trigger the email. I need the macro to read through column X on all rows and if the value is 360 then an email is sent to the address (column C) in that row

can this be done?

I tried the following but it only generates one email

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count < 1 Then Exit Sub
If Not Application.Intersect(Range("X2:X7000"), Target) Is Nothing Then
If IsNumeric(Target.Value) And Target.Value = 360 Then
Call renewalemail
End If
End If
End Sub

thank you
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,214,940
Messages
6,122,361
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top