bradyboyy88
Well-known Member
- Joined
- Feb 25, 2015
- Messages
- 562
Hi,
I have a drag and drop feature using a listview on my userform. I am trying to drag and drop emails from outlook to my excel userform. I am not very familiar with the MSComctlLib.DataObject type and its actually a bit more complicated as I thought. I am wondering if someone could point me in the right direction for how to use this to capture outlook email contents. I am trying to get the email contents, receive date, contacts, etc. I am familiar with mailitem object which can pull all of this information with functions but I do not know how MSComctlLib.DataObject relates to mailitem.
So far here is my code:
I have a drag and drop feature using a listview on my userform. I am trying to drag and drop emails from outlook to my excel userform. I am not very familiar with the MSComctlLib.DataObject type and its actually a bit more complicated as I thought. I am wondering if someone could point me in the right direction for how to use this to capture outlook email contents. I am trying to get the email contents, receive date, contacts, etc. I am familiar with mailitem object which can pull all of this information with functions but I do not know how MSComctlLib.DataObject relates to mailitem.
So far here is my code:
Code:
Private Sub LvDropEmaileHere_OLEDragDrop(Data As MSComctlLib.DataObject, Effect As Long, Button As Integer, Shift As Integer, x As Single, y As Single)
MsgBox "test" 'This works
End Sub