+ Reply to Thread
Results 1 to 1 of 1

Thread: MS Outlook Social connector (grab pictures)

  1. #1
    Registered User
    Join Date
    11-01-2011
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    1

    MS Outlook Social connector (grab pictures)

    Hi,
    Can 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 code so far.
    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
    Last edited by mistystix; 11-01-2011 at 10:08 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0