Mozna by to slo takto, ale netestoval jsem to:
Dim CMB As Control, i As Long
i = 2
For Each CMB In Me.Controls
If CMB.Name = "CommandButton" & i Then
CMB.Enabled = False
End If
Next CMBcitovat
Dim CMB As Control, i As Long
i = 2
For Each CMB In Me.Controls
If CMB.Name = "CommandButton" & i Then
CMB.Enabled = False
End If
Next CMBcitovat