Accepted answer
-
HansV 966 Reputation points MVP
2021-01-27T14:54:27.553+00:00 Does this work?
Private Sub Command41_Click() Dim x As Integer For x = 0 To Me.ListBox1.ListCount - 1 Debug.Print ListBox1.ItemData(x) Me.ListBox1.ListIndex = x ''Send SMS command Call cmdSendSMS_Click Next x End Sub