Repositioning CheckBoxes on UserForm with VBA

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top