Thanks for the quick replies. I had looked into attachments collection, however, the tool I am using somehow manages to save a contact item with an image in the notes field with no attachment item associated with it. Don't ask me how!
Let me give some background, I am using a tool by Abbyy called Business Card Reader in order to scan in a business card and have the contact details automatically determined and then saved as an outlook contact. It works great except for the fact that the only place the scanned image of the business card is put is in the notes. When the contact is then sync'ed with the iphone, the image does not show up. And to make it worse, when the contact is updated on the iphone side, the image is usually wiped out. So, I am looking for a VBA solution to grab the image and associate it with the contact in a way that survives iphone syncing.
What I have come up with is to grab the image out of the notes, save it, and then make it the contact picture. Unfortunately, I am finding it near impossible to get this image saved.
What I have discovered so far:
1. when the contact is initially created in outlook, the business card image is in the notes field, but there is no attachments item for the contact. Don't know how they are getting this to work, but that is what it does.
2. if I attach a second image manually by editing the contact, it shows up in the notes field with the original business card image and the attachments collection goes from 0 attachments to 2 in VBA, showing an item for both the scanned business card image as well as the item I manually attached.
3. if I attach a second image using VBA, it shows up in the notes field with the original business card image but the attachments collection only reflects the new attachment, not the original business card image as in item 2.
So, I am having an impossible time finding a programmatic way to get VBA to see the business card image in the notes field without having to manually deal with each contact.
For example here is a contact I am working with:
and here is what the variables look like when processing in VBA:
Not sure how easy this is to see, but the contact is showing no attachment items in the collection, however, there are clearly two images in the notes field.
Hope all this makes sense. Once again, any assistance in solving this mystery is sincerely appreciated!
Patrece