Send the same SMS to multiple numbers using AT commands

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Send the same SMS to multiple numbers using AT commands



I need to send a message to multiple recipients using AT commands.



I'm using this through excel vba.


Public Sub SendSMS()
Dim MSComm1 As New MSComm
Dim strSMSRecipients As String

strSMSRecipients = "xxxxxxxxxxxx; yyyyyyyyyyyy"

With MSComm1
.CommPort = 1
.PortOpen = True
.Output = "AT+CMGF=1" & vbCrLf
.Output = "AT+CMGS=""" & strSMSRecipient & """" & vbCrLf
.Output = "Hi, World!" & Chr(26)
End With
End Sub



It works fine if it's sent to only 1 recipient.



Is there any command for sending to multi recipients or do I have to loop and sending one by one?



Thank u in advance.





I think this is not a Excel-VBA question because it is related to how the command for multiple SMS should look like which has nothing to do with VBA at first. It is not Excel or VBA that sends the SMS it is a 3rd party tool you are using (or what ever hides behind your MSComm). So I doubt that any of the VBA gurus here can answer that question. This is more a question about AT commands or something else. • Nevertheless what I can say from VBA side: Looping would work if you already managed sending single recipient SMS.
– Pᴇʜ
40 mins ago







Tanks.. Edited.
– user3286479
6 mins ago





I've been trying to do this before, but could never find a way, other then looping each message... I made an array with all the numbers and looped until UBound(Array)
– T. Nesset
1 min ago


UBound(Array)









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Better method to check all objects' parameters with a single call

C++ virtual function: Base class function is called instead of derived