Yup, needed something similar a while ago and that's exactly where i found it. Ron is the man!
If you are looking for a quick answer though, the below code should work assuming the following:
- you are using Office 2010 or later
- your Outlook Object Library is activated (check in Tools/References)
- your Outlook is running
- your "slip.xlsm" workbook is your active workbook when you run this code
I am aware that this code is probably poorly written, stuff was hardcoded, etc., but it should hopefully give you what you are looking for.
Bookmarks