ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can you bring one workbook into another workbook? (https://www.excelbanter.com/excel-discussion-misc-queries/191421-can-you-bring-one-workbook-into-another-workbook.html)

PRECO_GIS

Can you bring one workbook into another workbook?
 
I have two separate workbooks that were previously set up for me with macros
included... both work separately in their own rights, however I would like to
be able to blend them... I do not have VB skills to speak of (I am more of a
SQL admin).

How can I bring the best of both of these workbooks together into a new
workbook?

Harald Staff[_2_]

Can you bring one workbook into another workbook?
 
In the VB editor you can drag all modules, classes and forms from one file
("project") into the other in the project editor. Then in Excel select all
sheet tabs at once, rightclick, "move or copy", move to the other file.

You may/will encounter problems if macros or functions are named the same,
sheets are named the same, ranges are named the same in the two files. Also
there will be problems if macros address sheets by index instead of names.

HTH. Best wishes Harald


"PRECO_GIS" wrote in message
...
I have two separate workbooks that were previously set up for me with
macros
included... both work separately in their own rights, however I would like
to
be able to blend them... I do not have VB skills to speak of (I am more of
a
SQL admin).

How can I bring the best of both of these workbooks together into a new
workbook?




All times are GMT +1. The time now is 09:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com