How to save an active UserForm with its dynamically created form controls?
For example:
1. I dynamically create a Userform
2. I programmatically add a number of form controls to it
3. How do I save this 'new' Userform to the Active Workbook or to another Workbook
ps. I can programmatically export an existing Userform and import it into another workbook but I can't figure out how to export a Userform which has been dynamically modified.
Dim ctl As Control
For Each ctl In Me.Controls
Select Case TypeName(ctl)
Case "Label"
' Set label properties
Case "TextBox"
' Set textbox properties
Case "CommandButton"
' Set command button properties
'etc.
End Select
Next