R
red6000
Hi,
I have a userform with a whole load of checkboxes (only checkboxes plus 1
command button).
What I am trying to do is reposition all the check boxes.
I have the following code:
Dim cbControl As Control
For Each cbControl In myForm.Controls
obControl.Left = 10
Next cbControl
but it debugs on the 3rd line saying object required.
any ideas?
Thanks
I have a userform with a whole load of checkboxes (only checkboxes plus 1
command button).
What I am trying to do is reposition all the check boxes.
I have the following code:
Dim cbControl As Control
For Each cbControl In myForm.Controls
obControl.Left = 10
Next cbControl
but it debugs on the 3rd line saying object required.
any ideas?
Thanks