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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top