By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,036 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,036 IT Pros & Developers. It's quick & easy.

VB Copy a Tab Page

P: n/a
Is there a way to copy a pre-existing Tab Page to a Tab Control?
I expect the code to look like this....

Dim tabNew As New Form_Main.pgeMainTemplate 'Make a copy of the

'Now add it to the tabMain
Form_Main.tabMain.Pages.Add tabNew '??????

I add tab pages frequently with similar controls and new names.
This would save some time for me.



Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
I would prefer to use this, because I want to save 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?


Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.