Retrieving data from an email

rickblunt

Well-known Member
Joined
Feb 18, 2008
Messages
609
Office Version
  1. 2019
Platform
  1. Windows
Greetings, did a search for this in the forum but I am not sure how to even phrase the search so I didn't find anything lol... I know that I can send an email, fill in the headers and bodies and such all with a macro, do that quite a bit. But is there a way to reverse that process? So that I can take data from an email and return it to a userform?

The application is that I use "comment" emails quite a bit in my userforms, the user can click a "comment" button that launches a small userform where they put in their name, comments, questions or what have you and it sends me the information in an email. This macro also automatically logs them in a WS so that I can keep track of the submitted comments. I usually simply respond manually by email, and manually create the response in this comments log. Works easy enough but it occurred to me that perhaps I can do all this automatically from the email itself. I know I can include a hyperlink in the original email that would open up a WB just by clicking it, I do that quite a bit as well.

So the question is - If a person was to click on this hyperlink which in turn would launch a WB. Could I have the userform that launches when the WB is opened transfer any data from the email back in to the userform? In other words, I can send excel data to and outlook email before it is sent, but can I send outlook data to excel?

Just wondering, thanks for any input
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,214,978
Messages
6,122,545
Members
449,089
Latest member
davidcom

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