raccoon588
Board Regular
- Joined
- Aug 5, 2016
- Messages
- 118
i have the following code, it loops through the check boxes within the user form. Id like to be able to have the message change depending on which check box is true. how could i adjust this loop to have a specific message per check box that is true and then keep going continuing the loop every time hitting a different true check box and giving a different message depending on what comes up true.
Code:
Private Sub CmdSubmit_Click()
Dim C As MSForms.Control
For Each C In Me.Controls '<--| loop through userform controls
If TypeName(C) = "CheckBox" Then
If C.Value = True Then
MsgBox C.Name
End If
End If
Next C
End Sub