Hi Mike,
Try something like:
'=============>>
Public Sub Tester()
Dim srcWB As Workbook
Dim destWb As Workbook
Const sStr As String = "C:\myFile.frm"
Set srcWB = Workbooks("MyBook1.xls")
Set destWb = Workbooks("MyBook2.xls")
srcWB.VBProject.VBComponents("Userform1").Export _
Filename:=sStr
destWb.VBProject.VBComponents.Import _
Filename:=sStr
Kill sStr
End Sub
'<<=============
For more informatoion on exporting / importing modules,
see Chip Pearson at:
Programming To The Visual Basic Editor
http://www.cpearson.com/excel/vbe.htm
---
Regards,
Norman
"MikeZz" <(E-Mail Removed)> wrote in message
news:1E65A028-8BF0-4F2B-BCA8-(E-Mail Removed)...
> Title says it all...
> I'm using VBA to set up a new workbook.
> I want the new workbook to have stand alone macros and user forms.
>
> I can create the user forms and macros within the workbook that I'm
> copying
> from.
>
> I just want to duplicate those into the new workbook.
>
> Thanks!