Hello,
I have what is supposed to be a simple problem with dynamic Checkbox. I'm making a list CheckBox in UserForm.
As elsewhere in the code
How to choose and change the Caption for an example: Checkbox _2 witch Caption "Test 2" ?
I have what is supposed to be a simple problem with dynamic Checkbox. I'm making a list CheckBox in UserForm.
VBA Code:
Dim chkbox As MSForms.CheckBox
Dim i As Integer
For i = 1 To 3
Set chkbox = Me.Controls.Add("Forms.Checkbox.1", "Checkbox_" & i)
chkbox.Caption = "Test " & i
chkbox.Left = 18
chkbox.Top = 112 + ((i - 1) * 20)
chkbox.Width = 108
UserForm1.Height = 165 + ((i - 1) * 20)
Next x
As elsewhere in the code
How to choose and change the Caption for an example: Checkbox _2 witch Caption "Test 2" ?