separate all the sheets from one workbook, but also copy sheet called "Look Ups", then combine them

Golfboy1996

New Member
Joined
Feb 11, 2015
Messages
6
Hi, is there a way to separate all the sheets from one workbook, but also copy a sheet called "Look Ups" to each new workbook?

Also, I will need code to recombine them later.


For recombine, once the sheets are in there own workbooks, people will put numbers into a column. Then, I will need to combine them back into one workbook.
- I would not have to separate them, but only one person can have an excel file open at one time.
- I hope this make sense.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
ok, so I got it to separate with 2 sheets in one book and save them. One of the sheet is "Look Ups" and the other sheet is just another sheet in the workbook.

Code:
Sub CreateNewSBooks()
Dim ws As Worksheet
Dim wbThis As Workbook
Dim wbNew As Workbook
    Set wbThis = ThisWorkbook
    For Each ws In wbThis.Worksheets
        strFilename = wbThis.Path & "/" & ws.Name
        If ws.Name <> "Look Ups" Then
            wbThis.Sheets(Array(ws.Name, "Look Ups")).Copy
            Set wbNew = ActiveWorkbook
            wbNew.SaveAs strFilename
            wbNew.Close
        End If
    Next ws
End Sub

But now, how do you combine a bunch of workbooks into one workbooks?
 
Upvote 0

Forum statistics

Threads
1,215,373
Messages
6,124,549
Members
449,170
Latest member
Gkiller

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
Back
Top