oh yeah sorry.

Made some modifications and it works now
VB Code:
  1. For Each ctrl As Control In Me.Controls
  2.             If TypeOf (ctrl) Is CheckBox And ctrl.Name.Length >= 4 Then
  3.                 If DirectCast(ctrl, CheckBox).Checked = True And LCase(ctrl.Name.Substring(0, 4)) = "name" Then MsgBox(ctrl.Name.Substring(4, 1) & " is checked")
  4.             End If
  5.         Next