Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving option group around a form

Status
Not open for further replies.

GeekinGlasses

Programmer
Mar 12, 2002
44
0
0
US
Moving controls is relatively simple, by using the .left property of a control in vba.

The problem I have is that I want to move option group and it's option boxes without having to code in the .left property for each of the 15 option boxes. I've tried to using .left property of the option group, but it just ends up distorting the frame, because the option boxes don't move with it.

I figure I'm missing something really simple.
 
don't know if this will work, but you might try creating a variable and then setting the .left property of each controls in the option group as well as that of the option group to: TheVariable + Something. When you want to move the option group, change the value of the variable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top