Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Separate Sheets into Separate Excel Files

How to Use Excel VBA Macro is the focus of this article. To separate each Excel sheet into separate Excel files, simply use the VBA macro code to finish.

Table of Contents

How to Separate Sheets into Separate Excel Files covers the essential facts behind the topic, including what changed, why it mattered, and how it affected users.

If the user wants to separate each sheet into individual Excel files, it is also very simple. The contents of the sheet remain the same, the sheet name becomes the name of each file and the formula used in the sheet is not changed or the result error. The following article will guide you how to separate each sheet in Excel into separate files.

  • How to break VBA password in Excel
  • How to send email from Excel spreadsheet with VBA script
  • How to save Excel file contains VBA Macros code
  • How to create flashing letters on Excel

Video Tutorial for Separating Sheets in Excel

Instructions for Separating Sheets in Excel Separately

Step 1:

First of all, Excel must show the Developer tab first. Then open the Excel file to split the sheets. Below will have 3 sheets with different sheet names.

How to Separate Sheets into Separate Excel Files – Instructions for Separating Sheets in Excel Separately

Step 2:

Press Alt + F11 to open VBA in Excel, or click the Developer tab and click Visual Basic.

How to Separate Sheets into Separate Excel Files – Instructions for Separating Sheets in Excel Separately (2)

Step 3:

Switch to the content interface new users click on the Insert tab and then click on the Module section to open the VBA code entry interface.

How to Separate Sheets into Separate Excel Files – Instructions for Separating Sheets in Excel Separately (3)

Next, copy the code below into the interface.

 Sub Splitbook () 
 'Updateby20140612 
 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 

How to Separate Sheets into Separate Excel Files – Instructions for Separating Sheets in Excel Separately (4)

Step 4:

Click the Run icon on the toolbar to run or press F5 on the keyboard to run the code.

How to Separate Sheets into Separate Excel Files – Instructions for Separating Sheets in Excel Separately (5)

When the code process is completed, open the original Excel file store and see each sheet file displayed here. Each sheet name is converted to each Excel file name so users can easily manage files. All formulas used in each sheet remain the same.

How to Separate Sheets into Separate Excel Files – Instructions for Separating Sheets in Excel Separately (6)

When opening the sheet file if there is a notification like that, click Yes to continue to open the content.

How to Separate Sheets into Separate Excel Files – Instructions for Separating Sheets in Excel Separately (7)

With just a simple operation, you get the sheet files in Excel quickly. All content on each sheet of Excel has not been changed.

I wish you all success!

FAQ

How does How to use Excel VBA Macro work?

How to Separate Sheets into Separate Excel Files covers the essential facts behind the topic, including what changed, why it mattered, and how it affected users.

What should you prepare before using this method?

If the user wants to separate each sheet into individual Excel files, it is also very simple.

What should you do if the process does not work as expected?

The contents of the sheet remain the same, the sheet name becomes the name of each file and the formula used in the sheet is not changed or the result error.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.