Merging worksheets from one Workbook into another Workbook

jassythedog

New Member
Joined
Feb 2, 2009
Messages
7
I have a Workbook with 6 sheets and a lot of code behind which I have installed on a couple of PC's as standalone. In developing the s/w further I need to merge a new worksheet and the code behind it with the original Workbooks. I know I can copy worksheets from one Workbook to another but this does not move the code as well. I can also export the code separately and then import it but this gets messy if the user has to start doing all this. Is there an easier way to do this? I can not just send them a new merged workbook as they will have added their own local data in to the workbooks and we can not afford to lose this data. Hope this is clear, if not please ask and I will try to explain better. version in use is 2007
 

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
If you copy a worksheet to another workbook any code in the worksheet's module will also be copied.
 

jassythedog

New Member
Joined
Feb 2, 2009
Messages
7
I tried this and the module was not copied, it seemed the obvious thing to do. If you say it should happen I shall try again. Thanks
 

jassythedog

New Member
Joined
Feb 2, 2009
Messages
7
I have just one worksheet I need to copy (it has some very specific formatting) and behind this I have just one code module VBAProject Sheet - Module. would you call this a general Module?
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
The worksheet module is the one you see when you right click the sheet tab and choose View Code.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,845
Messages
5,598,421
Members
414,235
Latest member
sucosama

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top