How to split sheet into multiple separate Excel files
Having multiple sheets will increase the file size, especially when you add add-ins or add VBA macro code in Excel. Therefore, splitting sheets into multiple files is a reasonable solution in case users only want to get data in a certain sheet.
Split sheet into separate files
How to split sheet into multiple Excel files
Step 1: First, you need to check if the Excel you are using has the Developer tab. If not, you can display the Developer tab according to the instructions here.
Next, open the Excel file with multiple sheets. Suppose the image below shows you have an Excel file with 5 different sheets.
Step 2: Press the key combination ALT + F11 to open the VBA program in Excel, or click on the Developer tab -> then select Visual Basic .
Step 3: Then, the VBA interface appears -> click on the Insert tab -> then select the Module section to open the VBA code entry interface.
Next, copy the code below into the Module interface above.
Sub Splitbook()
'Updatedby20140612
Dim xPath As String
xPath = Application.ActiveWorkbook.Path
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each xWs In ThisWorkbook.Sheets
xWs.Copy
Application.ActiveWorkbook.SaveAs Filename:=xPath & "" & xWs.Name & ".xls"
Application.ActiveWorkbook.Close False
Next
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub
Step 4: Click Run on the toolbar to run or press F5 on the keyboard to run the code you just added above.
After the code execution is complete, you open the folder containing the original Excel file -> here, you will see each new file separated from the sheets will be located here. If your Excel file uses calculation formulas, all calculation formulas and data in each sheet will still be guaranteed and kept intact.
You can open the split file to check. If there is a notification as shown below -> click Yes to agree and the file will be opened normally.
So that's the end of the Free Download tutorial on splitting sheets into multiple Excel files. The steps for you to follow are really simple, right? The hardest part is to have the code to use, you can copy the code that TipsMake has created, and you simply copy them into the Module and run them.
In addition, you can add more Sheets in Excel or you can even merge multiple Excel files into 1 File in Excel quite easily! All instructions are available on TipsMake, please refer to the implementation and follow it. Good luck!
You should read it
- How to hide and hide sheets in Excel and show them again
- How to create a password protection for Excel sheets
- How to display sheet tabs in Excel
- MS Excel 2007 - Lesson 14: Layout
- How to hide the Sheet Tabs (sheet bar) in Excel
- How to quickly delete multiple sheets in Excel
- How to display Sheet Tab in Excel when hidden, not displayed
- How to hide and show Sheet in Excel
May be interested
- How to cut and split images in PDF files simply and easilyhow to cut and split images in pdf files simply and easily. pdf files have typical features such as high security, simple printing, small file size and easy sharing on the internet. however, some pdf files are very difficult to separate and you wonder because you do not know how?
- How to display Sheet Tab in Excel when hidden, not displayedexcel's sheet tab is used to manage work sheets easily. however, during the data processing process, the sheet tab suddenly becomes hidden, making you wonder how to handle this situation? so let's learn how to display sheet tab in excel when hidden to help you solve problems and work more efficiently.
- How to hide and show Sheet in Excelsometimes working with too many sheets makes you confused, or you don't want important sheets being viewed by others on your computer ..., or for some reason you want to hide the sheet and when necessary then display the sheet.
- 10 ways to split files, cut large files into several small filessplit files, cut large files into smaller pieces makes it easier to store and share. these are ways to split files that you can apply
- Recover deleted Sheet in Excelwhen you delete sheet in excel, it seems that the undo keyboard shortcut has no effect. so how to recover deleted sheet in excel?
- Show Sheet Tab in Excel when hiddenaccidentally when you open the excel file to work, you do not see the sheet tab bar appear to select sheet. you do not know what to do, so let's learn about the display of sheet tab in excel when hidden in this article.
- Basic tips with Sheet in MS Excelinstead of using tabs to manage multiple windows as in some applications, ms excel supports the integration of sheets (spreadsheets) as cards to help you manage them easily. .
- How to keep Excel and Excel columns fixed?fixed excel box, fixed row, fixed excel column when scrolling mouse makes it easy to track and manipulate data sheet. in addition, you can split the excel view area to edit on individual excel areas.
- Shortcut switch Sheet in Excelshortcut switch sheet in excel. are you looking for a shortcut combination to quickly switch sheet in excel to make the process of working between sheets faster? below the article shared to you the sheet shortcut shortcut in excel, invite you to tickle
- How to lock Excel Sheet, set a password for the sheet in Excellock sheet, set password for data sheet in excel to create security for your data file, do not let anyone edit or add data. tipsmake.com will guide you how to do in our article below.