Nov 19, 2002 #1 mveera Programmer Nov 6, 2002 81 US Hi, Is it possible to copy the UserForms and Modules created in Workbook to another workbook. Thanks Veera
Hi, Is it possible to copy the UserForms and Modules created in Workbook to another workbook. Thanks Veera
Nov 19, 2002 1 #2 RobBroekhuis Technical User Oct 15, 2001 1,971 US Yes. An easy way to handle it would be to export it from one workbook (to a temporary file), then import into the other one. Something like: ActiveWorkbook.VBProject.VBComponents("Module1".Export "c:\temp\module1.bas" OtherWorkbook.VBProject.VBComponents.import "c:\temp\module1.bas" Rob Upvote 0 Downvote
Yes. An easy way to handle it would be to export it from one workbook (to a temporary file), then import into the other one. Something like: ActiveWorkbook.VBProject.VBComponents("Module1".Export "c:\temp\module1.bas" OtherWorkbook.VBProject.VBComponents.import "c:\temp\module1.bas" Rob
Nov 19, 2002 Thread starter #3 mveera Programmer Nov 6, 2002 81 US Thanks Rob. I would like to know if it is possible to export all the forms and modules at one shot rather doing it one at time and then import separately. Thanks Veera Upvote 0 Downvote
Thanks Rob. I would like to know if it is possible to export all the forms and modules at one shot rather doing it one at time and then import separately. Thanks Veera
Nov 19, 2002 #4 RobBroekhuis Technical User Oct 15, 2001 1,971 US It's fairly easy to do with code modules, but I don't know how to do it with userforms. Maybe somebody else will jump in with a solution... Rob Upvote 0 Downvote
It's fairly easy to do with code modules, but I don't know how to do it with userforms. Maybe somebody else will jump in with a solution... Rob