Sub NewMessage(Msg As String, Writer As String)
ChatTxt.RunMethod("append", Array As Object(Msg))
ws.RunFunction("scrollDown", Null)
ws.Flush
If Writer <> name Then ' name is a module variable that holds the name of the chatter
' do something because you are not the sender
End If
End Sub