MS Outlook Social connector (grab pictures)

viktoryeung

New Member
Joined
Feb 6, 2005
Messages
17
Hi,
Can Excel VBA grab the profile pics from MS Outlook Social connector?
My Excel macro is hacking the Outlook sent folder and importing recipient email address into a worksheet. I want to grab the recipient profile picture too.
Here is my Excel code so far. (which is PRETTY COOL if you wanna try it)

Code:
Sub ImportOutlook()
Dim nms As Outlook.Namespace
Dim fld As Outlook.MAPIFolder
Dim msg As Outlook.MailItem
Dim recip As Outlook.Recipient
Dim itm As Object
Dim numrow As Integer

Set nms = GetNamespace("MAPI")
Set fld = nms.GetDefaultFolder(olFolderSentMail)

'COPY FIELDS INTO EXCEL COLUMNS
For Each itm In fld.Items
    numrow = numrow + 1
    Set msg = itm
    
    For Each recip In msg.Recipients
        Cells(numrow, 1).Value = recip.Address    'COLUMN A
    Next
    Cells(numrow, 2).Value = msg.Subject          'COLUMN B
    Cells(numrow, 3).Value = msg.SentOn           'COLUMN C
    'Cells(numrow, 4).Value = ?????  (insert profile picture from MS Outlook Social Connector)
Next itm
End sub
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,225,606
Messages
6,185,956
Members
453,333
Latest member
BioCoder84

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top