Select an Option Group

Jack Skeleton

Selfmade Accessman
Local time
Today, 13:21
Joined
Aug 3, 2005
Messages
29
You know that viewing a form in design mode, when you select an option group, the selection includes automatically all group elements (bound, options, labels...). My question is,

That can be done in VBA?. I mean to select a group of controls together (in my case, a whole option group) in order to do an action to all the controls at the same time (in my case, to move it).

Thanks in advance for your help!!
 
You can use the left and Height property to move the control.
 
You can use the left and Height property to move the control.

I'd like it was so easy...

If you use left, height, top or width you move only the bound of the option group, and the elements inside the bound act like an anchor (try it and you'll see). If you try to move first the controls inside the group... it's the bound which acts like an anchor. What I want is to move ALL the components of the option group TOGETHER. That's the reason for asking about the way of selecting a group of controls through VBA.

Thanks anyway...
 

Users who are viewing this thread

Back
Top Bottom