Private Sub UserForm_Click()
For Each it In Controls
If TypeName(it) = "TextBox" Then it.Text = it.Name
Next
End Sub
Sub test()
Dim a%
For a = 1 To 12
If a = 5 Then
Else
Controls("TextBox" & a).Value = XXX
End If
Next a
End Sub
Sub test()
Dim a%
For Each a In Array(1,2,3,4,6,7,8,9,10,11,12)
Controls("TextBox" & a).Value = XXX
Next a
End Sub
Unload Me
UserForm1.Show