HaiderAliKhan
New Member
- Joined
- Mar 27, 2014
- Messages
- 2
Hi Excel Gurus,
I am trying to automate below task: -
User manually selects(searches for email basically) the email in Inbox and click on forward button and then copies the whole body (Ctrl+A) then (Ctrl+C) and pastes (Ctrl+V) in Sheet1 of workbook.
I am successful in referencing an email from Excel VBA to extract Subject, ReceivedTime but not able to extract mail body with HTML formatting. I am able to fetch mailbody with below line of code.
Sheet1.cells(1,1) = olMail.body, but that doesn't help as it copies unformatted text to Sheet1.
I need the body in the same format it gets pasted manually.Please help.
Thanks in advance.
I am trying to automate below task: -
User manually selects(searches for email basically) the email in Inbox and click on forward button and then copies the whole body (Ctrl+A) then (Ctrl+C) and pastes (Ctrl+V) in Sheet1 of workbook.
I am successful in referencing an email from Excel VBA to extract Subject, ReceivedTime but not able to extract mail body with HTML formatting. I am able to fetch mailbody with below line of code.
Sheet1.cells(1,1) = olMail.body, but that doesn't help as it copies unformatted text to Sheet1.
I need the body in the same format it gets pasted manually.Please help.
Thanks in advance.