I currently have a working macro assigned to a button where when run will instant message a list of specified users with a particular message based on whatever information is in cell A10.
What I really need to be able to do is have it send the contents of A10:B:10 at the same time but that doesn't seem to work.
Anyone have any ideas?
Sub Macro1()
'
' Macro1 Macro
'
Dim X As Variant
X = Array("email1@dot.com", "email2@dot.com")
Dim msg As String
msg = Sheets("Task Assignments").Range("A10").Value
Call sendIM(X, msg)
End Sub
Sub sendIM(toUsers As Variant, message As String)
Dim msgr As CommunicatorAPI.IMessengerConversationWndAdvanced
Set msgr = Messenger.InstantMessage(toUsers)
msgr.SendText (message)
Set msgr = Nothing
End Sub
Thanks in advance for your help!
-Ian
What I really need to be able to do is have it send the contents of A10:B:10 at the same time but that doesn't seem to work.
Anyone have any ideas?
Sub Macro1()
'
' Macro1 Macro
'
Dim X As Variant
X = Array("email1@dot.com", "email2@dot.com")
Dim msg As String
msg = Sheets("Task Assignments").Range("A10").Value
Call sendIM(X, msg)
End Sub
Sub sendIM(toUsers As Variant, message As String)
Dim msgr As CommunicatorAPI.IMessengerConversationWndAdvanced
Set msgr = Messenger.InstantMessage(toUsers)
msgr.SendText (message)
Set msgr = Nothing
End Sub
Thanks in advance for your help!
-Ian