Copy a userform to a different workbook with VBA
Kuhni,
Here is an example that exports it the re-imports it
Workbooks("Book1").VBProject.VBComponents("Userfor m1").Export _
Filename:="C:\temp.frm"
Workbooks("Book3").VBProject.VBComponents.Import _
Filename:="C:\temp.frm"
Kill "C:\temp.frm"
--
HTH
RP
(remove nothere from the email address if mailing direct)
"kuhni" wrote in message
oups.com...
Hi there,
Does anybody know how I can copy a userform I've created in a workbook
to another workbook using VBA? As the user will be able to select the
target workbook, I need to automate this userform export with VBA.
Any ideas? Many thanks for your help!
Kuhni
|