Send email when due date near

Dannynijp

New Member
Joined
May 30, 2018
Messages
6
Dear All,

At work we order stock from the factory for orders we have from customers, so we set a Date Of Delivery so we know when to input this order in our system.
What I want to achieve is that via a VBA code is to check the "Date Of Delivery" and send out an email to myself 7 days before the due date, stating in Subject that "Order Due date is near" and mention the Order number in the text field. (see below example of excel)

[TABLE="width: 486"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Customer [/TD]
[TD]Order number [/TD]
[TD]Date of Delivery [/TD]
[/TR]
[TR]
[TD]NHMR[/TD]
[TD]89572[/TD]
[TD]13-7-2018[/TD]
[/TR]
[TR]
[TD]NHMR[/TD]
[TD]89354[/TD]
[TD]7-6-2018[/TD]
[/TR]
[TR]
[TD]NHMR[/TD]
[TD]89475[/TD]
[TD]6-5-2018[/TD]
[/TR]
</tbody>[/TABLE]

I am a novice in VBA at the moment and was wondering if somebody could help me out.

Thanks in advanced
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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