Is there a way to send messages via Skype for Business using excel VBA? I tried to add SKYPE4COMLib and following code:
Sub skype()
Dim aSkype As SKYPE4COMLib.skype
Set aSkype = New SKYPE4COMLib.skype
Dim oChat As Chat
Dim skUser As SKYPE4COMLib.user
Set skUser = aSkype.user("user_name")
Set oChat = aSkype.CreateChatWith(skUser.Handle)
oChat.OpenWindow
oChat.SendMessage "automated message"
End Sub
But it is not working :( Is it even possible? Thank you very much!