0
votes

I have been trying to build a program where I can capture/import/extract/retrieve information from fields in an open Outlook email item. I need to retrieve the To, From, Subject and email body. I am using Outlook 2016.

I have been able to pull in all emails from the INBOX folder. However, I have not been able to isolate it to retrieve information in the aforementioned fields from just a singular, open Outlook email item. Can somebody point me to a tutorial or code where only the open email's data has been retrieved? Code examples would be very helpful.

I attached a picture for more details.enter image description here

1
What have you tried so far? Show us your attempt. - Selim Yildiz

1 Answers

1
votes

For the currently selected message, use Application.AxtiveExplorer.Selection collection.