VBA code required to capture subject date and time from outlook email

exceluser9

Active Member
Joined
Jun 27, 2015
Messages
388
Hi Team,

We do receive 3 auto generated emails from system from email@automate.com

Below are the email subjects

GPRS System Availability ETA - 08:53
GPRS System Availability ETA - 09:15
GPRS System Availability ETA - 09:16

What i want the macro to do is copy and paste the email subject, email time in the excel file in below format

On Monday when i run the macro it has to capture the data for Saturday, Sunday & Monday because on weekends we dont work.

Please note on Sunday i receive only one email so the data can be blank for rest of the 2 rows

The calendar date in the file will be update by us. Macro has to capture only subject and time and paste the data for the respective dates

Whenever i run the macro the macro has to paste only the missing data for respective dates for the data which is already captured it can ignore

Thanks in advance

Sample grid below
Calender dateSubjectEmail time
10/1/2023GPRS System Availability ETA - 08:53
10/1/2023GPRS System Availability ETA - 09:15
10/1/2023GPRS System Availability ETA - 09:16
11/1/2023
11/1/2023
11/1/2023
12/1/2023
12/1/2023
12/1/2023
13/1/2023
13/1/2023
13/1/2023
14/1/2023
14/1/2023
14/1/2023
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,224,827
Messages
6,181,200
Members
453,022
Latest member
RobertV1609

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