Merging worksheets from one Workbook into another Workbook

jassythedog

New Member
Joined
Feb 2, 2009
Messages
5
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
 

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
5
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
5
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.
 

Forum statistics

Threads
1,082,380
Messages
5,365,124
Members
400,824
Latest member
Themilkybarkid

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top