Select image in contact notes field and save as jpg

Status
Not open for further replies.

Patrece May

Member
Outlook version
Outlook 2010 32 bit
Email Account
Office 365 Exchange
I am trying to find a way to use VBA to select images found in an Outlook 2010 contact's note field (body) and save them as jpg. I have been searching for a solution for weeks and am at a loss. Any ideas or assistance is sincerely appreciated.
 

Patrece May

Member
Outlook version
Outlook 2010 32 bit
Email Account
Office 365 Exchange
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:
upload_2015-7-11_22-59-8.png



and here is what the variables look like when processing in VBA:

upload_2015-7-11_23-3-7.png


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
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
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.
Does the iPhone support attachments in the notes field? EAS doesn't sync them - so the behavior you see if expected.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
After this line in the macro
lngCount = objAttachments.Count

add
msgbox lngCount

does the message box list the correct # of attachments?
 

Patrece May

Member
Outlook version
Outlook 2010 32 bit
Email Account
Office 365 Exchange
I agree that the iphone does not display the images, but when attached properly, the iphone sync does not remove them. It looks like the problem is that the business card scanner software is not properly attaching the images to the contact so that they will survive the sync. And to be honest, I have no idea how they are getting the images into the notes field without an attachment being created. I have submitted a trouble report asking them to look into this.

I was just hoping to find a way to get a hold of this image in the notes field and programmatically reattach the image so that it will work as expected. If I open the contact and right click on the image, I can do a "Save as Picture" and it will save the image that I can then use, but I have found no way to do this in VBA since there is no attachment and I have been unable to figure out how to select an image in the notes that has no attachment.

Any ideas on this would be MORE than appreciated!!!
[DOUBLEPOST=1436800250][/DOUBLEPOST]
After this line in the macro
lngCount = objAttachments.Count

add
msgbox lngCount

does the message box list the correct # of attachments?
Not sure what you are referencing here. Can you please give additional details?
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
E Asking user to select multiple options in a list in an email Outlook VBA and Custom Forms 0
R List folders in a combo box + select folder + move emails from inbox to that folder + reply to that email Outlook VBA and Custom Forms 1
R Add 'Company' to Select Names Form Using Outlook 1
B Select / activate first email item in the searched query Using Outlook 1
A Multi-select Listbox Outlook VBA and Custom Forms 6
H Select Specific Account When Sending Email, Based on Current Folder Outlook VBA and Custom Forms 1
S Display PF contact folder items to select contact to link to appointment Outlook VBA and Custom Forms 1
N Auto-complete - block select emails Using Outlook 3
N Select Appointment subject line from combobox or list Outlook VBA and Custom Forms 1
G How to Copy Multi Select Listbox Data to Appointment Outlook VBA and Custom Forms 3
N Select a folder in a user account Outlook VBA and Custom Forms 2
Diane Poremsky Select from a List of Subjects before Sending a Message New Slipstick.com Articles 0
Diane Poremsky Select Multiple Calendars in Outlook New Slipstick.com Articles 0
oliv- How to select an mailitem in explorer with "show as conversation" Outlook VBA and Custom Forms 8
N Select Existing BCM Business Contact in C# application Using Outlook 0
nathandavies Creating a Select Case for a directory of folders Outlook VBA and Custom Forms 1
B What is the best way to use Outlook address book to select customer and then open Excel Outlook VBA and Custom Forms 22
C Outlook 2007 Select Names Default columns Using Outlook 3
R Can BCM monitor and select specific emails and use content info to update the client's record? BCM (Business Contact Manager) 1
R Cannot select iCloud calendar Using Outlook 5
H Select one of Contact-Mailadesses to Export > Excel or Winword Outlook VBA and Custom Forms 2
G Select Outlook account for BCM? BCM (Business Contact Manager) 2
Z Manual archive of select folders Using Outlook 1
R How to modify Outlook Select Rooms form columns Using Outlook 1
Z bulk add categories / with fixed colours / select multiple categories on a not Using Outlook 1
C Outlook editing won't select just one word Using Outlook 1
I Address book contacts not listed in "Select Names:Contacts" window Using Outlook 2
Y Outlook 2010 Select and reply to multiple messages at one time Using Outlook 0
Y Outlook 2010 Select and reply to multiple messages at one time Using Outlook 2
D Contacts as default in Select Names dialog Using Outlook 1
D How to select different account when sending emails from Outlook 2003 Using Outlook 3
E Outlook 2010 calendar print - select begin-end weeks for month print but Preview and print show ful Using Outlook 2
R Select contacts and print labels for selected contacts from complete contact list in Outlook. Using Outlook 1
F Why do messages only arrive when I select the server's folder? Using Outlook 3
P Sharing Outlook contacts so users can select as an address book for email. Using Outlook 1
B Do not allow / Show to select "Tentative" option in Responce Using Outlook 1
H Exchange Server 2007 strips messages when clients select add item in a new Message Using Outlook 10
R Cannot select items from Outlook 2007 Menu bars Using Outlook 1
D Outlook 2010 crashes when I select new message, reply, forward or send as attachment Using Outlook 3
M Not able to select my contacts list for my address book Using Outlook 7
L Rule to select incoming messages by contact category Using Outlook 11
C Select folder to file send emails Using Outlook 1
G MS Exchange ActiveSync 2007 Denying Select Devices Exchange Server Administration 2
D Select categories to print Using Outlook 1
C Error when trying to select the Email Auto link option Using Outlook 2
N Not able to select the details of a head office synced contact Exchange Server Administration 4
Z "Select Names: Contacts" Menu displays contacts in different ways Using Outlook 6
S Outlook 2010 - Room List does appear empty in room finder / select an available room from a location Exchange Server Administration 3
R Outlook 2003 - Can no longer select text in HTML emails in the message preview pane Using Outlook 9
S Outlook 2007 caendar hangs when I select today's day BCM (Business Contact Manager) 4
Similar threads


















































Top