VBA & Macro Problems

How to Automatically Split an Excel Sheet into Owner Worksheets

Bushra ParveenBushra Parveen Nov 10, 2026 868 views

Question details

The user needs to automatically divide a master sales sheet into separate worksheets for each representative without losing formulas or drop-down lists.

How to Automatically Split an Excel Sheet into Owner Worksheets
Product
Excel
Device & OS
not provided
Scenario
Distributing a master sales record to individual sales representatives for review.
Observed behavior
Manually copying the sheet and cleaning data for each representative is too time-consuming and prone to formatting or formula loss.
Before you start

Before running macros or queries, ensure your master data is formatted as an official Excel Table (Ctrl+T) so that any future additions or new accounts are automatically included when the process is refreshed.

Solution 1Recommended

Use a VBA Macro to Split the Sheet Automatically

A VBA macro is the most efficient way to instantly split a master sheet into multiple worksheets based on a specific column (like sales rep names) while keeping all formulas and data validation intact.

By utilizing a VBA script, you can automate the process of filtering unique owners and copying their respective rows into newly created worksheets. This method perfectly preserves cell formulas, drop-down menus, and conditional formatting.

1
Open the VBA Editor

Press Alt + F11 in your Excel workbook to open the Visual Basic for Applications (VBA) editor.

2
Insert a New Module

Click on 'Insert' in the top menu and select 'Module' to create a blank script window.

3
Paste the Split Code

Copy and paste a standard split-by-column VBA script into the module. Ensure the code is set to reference the specific column containing your owner or sales rep names.

4
Run the Macro

Press F5 or click the 'Run' button. The macro will automatically filter the source table, create a new sheet for each unique owner, and copy the relevant data, formulas, and formatting.

Use a VBA Macro to Split the Sheet Automatically
Save as Macro-Enabled: Remember to save your workbook as an Excel Macro-Enabled Workbook (.xlsm) so you don't lose the VBA code.
Advanced Data Management in WPS Office

Easily Manage Macros and Split Data with WPS Spreadsheet

WPS Spreadsheet provides robust support for VBA macros and advanced filtering, allowing you to automate repetitive tasks like splitting worksheets by owner quickly and efficiently.

  1. 1. Open your Workbook in WPS: Launch WPS Spreadsheet and open your master data file containing the sales records.
  2. 2. Access the Developer Tools: Navigate to the 'Developer' tab on the ribbon to access the macro and VBA tools.
  3. 3. Run the Split Macro: Click 'Macros', select your split-sheet script from the list, and click 'Run' to generate individual owner sheets instantly.
Fully compatible with Microsoft Excel (.xlsx and .xlsm) formatsBuilt-in VBA editor to run and manage macro scripts smoothlyAdvanced table formatting and data validation toolsLightweight software with a familiar, easy-to-navigate interface
microsoft office alternative - wps office

Frequently Asked Questions

Will splitting the sheet with a macro preserve my drop-down lists?

Yes, if the VBA macro uses the 'Copy' method for the entire row or range, all data validation rules, including drop-down lists and formatting, will be successfully carried over to the new worksheets.

What happens if new sales reps are added to the master list?

If you convert your source data to an official Excel Table, dynamic VBA scripts and Power Queries will automatically recognize the new unique names during the next execution and generate new sheets for them.

Can I split the sheets into separate workbooks instead of just worksheets?

Absolutely. You can modify the VBA macro to use the 'Workbook.Add' command instead of 'Worksheets.Add', which will save each owner's data as a brand-new, standalone Excel file.

Why didn't my formulas copy over when I used Power Query?

Power Query is designed to extract and transform data values, not the formulas themselves. If you need to preserve the exact formulas and interactive elements from the master sheet, using a VBA macro is the required approach.