title: Outlook - distribution list member details
body: <p>I am trying to get details for users in a distribution list (containing ~200 people). </p>
  
  <p>When I create a new email, add this DL as the only recipient and run the macro below, it returns ~15 first results, then "Outlook is trying to retrieve data from the Microsoft Exchange server" tray message appears and after some time I get "The operation failed" error. </p>
  
  <p>If I continue the code execution the next ~15 values are returned and this issue reappears. Seams like there is some Exchange anti-spam limit.</p>
  
  <pre><code>Sub GetDetails(olMail As MailItem)
  
      Dim i As Integer, j As Integer
      For i = 1 To olMail.Recipients.Count ' count = 1
          If olMail.Recipients.Item(i).AddressEntry.GetExchangeUser Is Nothing Then
              For j = 1 To olMail.Recipients.Item(i).AddressEntry.Members.Count ' count ~= 200
                  Debug.Print olMail.Recipients.Item(i).AddressEntry.Members.Item(j).GetExchangeUser.FirstName
              Next j
          End If
      Next i
  End Sub
  </code></pre>
  
  <p>But if I expand the distribution list (using the '+' icon) and run slightly modified code, results for all users are returned with no issues (taking a few seconds only).</p>
  
  <pre><code>Sub GetDetails(olMail As MailItem)
  
      Dim i As Integer
      For i = 1 To olMail.Recipients.Count ' count ~= 200
          If Not olMail.Recipients.Item(i).AddressEntry.GetExchangeUser Is Nothing Then
              Debug.Print olMail.Recipients.Item(i).AddressEntry.GetExchangeUser.FirstName
          End If
      Next i
  End Sub
  </code></pre>
  
  <p>Any ideas?</p>