I have a multipage in a userform. During run-time, the user can choose to add x number of pages at any time. The elements of each page will be the same. I am wondering if there is a way to duplicate these elements, or would I need to re-create these same elements for each new page? If so, how do I specify locations on the page where the element should be placed?
Copy Elements From One Page To Another in Multipage with VBA in Excel
10.7k Views Asked by Ehudz At
2
The trick is to put all controls in a frame in the 1st page and then the rest becomes easy :)
This code will copy the controls from
Page1
toPage2
after creatingPage2
and align them accordingly.SNAPSHOT