generating emails based on a cell value reached on various rows

Blanchetdb

Board Regular
Joined
Jul 31, 2018
Messages
161
Office Version
  1. 2016
Platform
  1. Windows
[TABLE="width: 500"]
<tbody>[TR]
[TD]First Name
[/TD]
[TD]Last Name
[/TD]
[TD]email address
[/TD]
[TD]registration date
[/TD]
[TD]#day since registration
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John
[/TD]
[TD]Smith
[/TD]
[TD]john.smith@gmail.com
[/TD]
[TD]2018/04/29
[/TD]
[TD]360
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jane
[/TD]
[TD]Doe
[/TD]
[TD]jane.doe@gmail.com
[/TD]
[TD]2018/04/29
[/TD]
[TD]360
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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