olOle

B

Boyan

I have the following situation.

5 contacts were drag&drop onto journal item. A new Journal item is
created with 5 attachments. Attachments type is olOle. I want to read
back these attachments as OutlookContact item.

Sample code works if there is started Outlook Application with
selected journal item of decribed type:

Private Sub Command9_Click()
Dim app As New Outlook.Application
Dim item As Outlook.JournalItem
Set item = app.ActiveExplorer.Selection(1)

GetContatctsFromAttachments(item)
End Sub


Public Function GetContatctsFromAttachments(dropItem As Object) As
String
On Error resume next
Dim ci As Outlook.contactItem

MsgBox dropItem.Attachments.Count

Dim attachment As Outlook.attachment
For Each attachment In dropItem.Attachments
Set ci = attachment //type mismatch error of cource
Next
End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top