C0D3 MA5T3R Homepage

Form Duplicator

Function to duplicate a form any number of times

(See Below Code)

'Call this function or add this code to duplicate a form
Public Function newform()
'
'Dimension the form name as what it will be - i.e. the same as the form that it is being created off
Dim newfrm As Form1 'Replace Form1 with the form to be duplicated
'
'Then set newfrm to be a new copy of the required form
Set newfrm = New Form1 'Replace Form1 with the form to be duplicated
'
'Show the new form
newfrm.Show
'
End Function

(Copy and Paste this code into your Visual Basic project)

*Want to join the C0D3 MA5T3R e-mail list?*

Get all the latest code news and articles, and even submit your own.

You can sign-up for free below (you may opt-out at any time):

Join the mailing list
Enter your name and email address:
Name:
Email:  
Subscribe      Unsubscribe