title: Lync notification of offline people using VBA
body: <p>I am having a VBA, Added to my outlook, which sends message over Lync. 
  The Script is as given below. </p>
  
  <hr>
  
  <pre><code>Sub sendIM(toUsers As Variant, message As String)
  
      Dim msgr As CommunicatorAPI.IMessengerConversationWndAdvanced
  
     'Open messenger window and send message!!!!!
      Set msgr = messenger.InstantMessage(toUsers)
      msgr.SendText (message)
      Set msgr = Nothing
  </code></pre>
  
  <hr>
  
  <p>It works fine. If there are 10 users, in the toUsers variable, then it sends the message to all as a "Group". </p>
  
  <p>What i want is, if there is a user who is <em>offline</em>, I would like to get some notification that the person is not online. The Messenger displays "Error", saying "Cannot invite "n" people to join the meeting".  </p>
  
  <p>Can I get some status, which returns me details of all the users, whom the message was not sent? </p>