Hello all,
I am pulling emails from outlook based on a date range that a user selects and putting the body of the email inside excel. The code I have accurately determines the number of emails in a given range (iRow value = 5 ) and then pulls 5 emails. The issue is that it does not pull those 5 emails that was within range (Restrict method), instead it pulls the first five emails in the folder which has 20 total emails. It would be greatly appreciated for some help on this. My thinking is that I have to use the Restrict method to put the emails in a collection and then do
For Next loop to get the body of each of the 5 emails into a cell. Thank you!
Please Login or Register to view this content.
Bookmarks