Moving a control from one section to another using VBA

Andy Brown
Andy Brown used Ask the Experts™
I am creating a dynamic form and storing some place holder controls within the header (to keep the details section tidy).  I want to move some of these controls onto the "Details" section using VBA and manipulate their size / position.  However, I can't seem to find a way to move a control from the Header to the Details section.

Any ideas?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014
I don't think you can move controls between "sections" of the form during runtime. Instead, add the control to the Detail section (as well as the Header) and then just toggle the display to show it in the Header or the Detail.
Andy BrownDeveloper


Thank you Scott - I had a feeling this would be the case.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial