hi
i have one data file with one macro. now from this macro auto mail send to user when contract going to expire.
now i want if user is same and his more then one aacounts going to expire in this case mail should be like
Dear
The Below contract is due for notice of renewal/termination in 30 days.
|
Contract Number
|
Supplier Name
|
Description
|
Type
|
Contact Start Date
|
Contact End Date
|
Notice Period
|
|
1
|
|
|
Service
|
01/11/2025
|
31/03/2026
|
90
|
|
4
|
|
|
Service
|
01/10/2025
|
30/09/2025
|
120
|
|
5
|
|
|
Service
|
01/03/2026
|
28/02/2026
|
30
|
|
35
|
|
|
Service
|
01/01/2026
|
31/12/2025
|
90
|
|
41
|
|
|
Service
|
06/03/2026
|
05/04/2026
|
30
|
|
48
|
|
|
Service
|
14/01/2026
|
13/01/2026
|
0
|
|
53
|
|
|
Service
|
01/05/2026
|
01/05/2026
|
90
|
|
64
|
|
|
Service
|
25/02/2026
|
24/02/2026
|
90
|
|
76
|
|
|
License
|
01/03/2026
|
28/02/2026
|
90
|
|
89
|
|
|
Service
|
31/03/2026
|
30/03/2026
|
90
|
|
93
|
|
|
Service
|
04/03/2026
|
03/03/2026
|
30
|
|
96
|
|
|
Service
|
11/09/2025
|
10/09/2025
|
180
|
|
99
|
|
|
Service
|
01/10/2025
|
31/10/2025
|
22
|
|
103
|
|
|
Service
|
11/04/2026
|
30/04/2026
|
90
|
|
123
|
|
|
Service
|
15/04/2026
|
14/04/2026
|
90
|
|
136
|
|
|
Service
|
01/04/2026
|
31/03/2026
|
15
|
|
138
|
|
|
Maintenance
|
01/04/2026
|
31/03/2026
|
90
|
|
150
|
|
|
Service
|
24/04/2026
|
23/04/2026
|
90
|
|
156
|
|
|
Subscription
|
07/05/2026
|
06/05/2026
|
180
|
|
167
|
|
|
Subscription
|
12/02/2026
|
01/01/2026
|
14
|
|
176
|
|
|
Service
|
01/05/2026
|
31/10/2025
|
90
|
|
180
|
|
|
Service
|
01/03/2026
|
28/02/2026
|
90
|
|
182
|
|
|
Maintenance
|
01/02/2026
|
31/01/2026
|
180
|
|
184
|
|
|
Service
|
28/05/2026
|
27/05/2026
|
60
|
|
198
|
|
|
Service
|
13/07/2026
|
31/10/2025
|
90
|
|
232
|
|
|
Service
|
26/11/2025
|
01/11/2025
|
30
|
|
243
|
|
|
Service
|
24/01/2026
|
23/01/2026
|
30
|
|
251
|
|
|
Service
|
04/03/2026
|
03/03/2026
|
30
|
|
252
|
|
|
Goods
|
01/04/2026
|
31/03/2026
|
90
|
|
100d
|
|
|
Service
|
09/05/2026
|
08/05/2026
|
60
|
|
181a
|
|
|
Service
|
20/03/2026
|
19/03/2026
|
90
|
|
181b
|
|
|
Service
|
27/03/2026
|
26/03/2026
|
45
|
|
9a
|
|
|
Service
|
22/04/2026
|
21/04/2026
|
30
|
|
9b
|
|
|
Service
|
01/03/2026
|
28/02/2026
|
30
|
Please take the necessary action within 30 calendar days to either renew or terminate this contract.
Please note it is your responsibility to get a new contract ( if required) signed by the Financial Controller and the General Manager.
No further payments will be processed to the supplier after the contract expiry date unless the relevant paperwork is received.