Using VBA to create/copy a pre-existing Tab Page

C

cefrancke

Is there a way to create a tab page based on a pre-existing tab page.
This way I can make a template page and create additional pages based
on the template using VBA. Also, I want to do this in design mode so I
can save the results to the form after the Page is created.


Dim pgeNew as Page
Set pgeNew = CreateControl ("Main", acPage,acDetail,"tabMain","",,­,,)



Now, how do I get the new Page to become a copy of the Template page?


TIA
 
Top