Skip to main content

How to create sequence worksheets from a range of cells in Excel?

If you have a range of data in your worksheet, and now, you want to create a sequence of worksheets based on the cell data, see following screenshot. Of course, you can edit the worksheet name one by one manually, but if there are multiple worksheet names need to be edited, this way will be troublesome and time-consuming. Here, I will talk about some quick tricks to help you.

doc-create-sheets-from-list1

Create sequence worksheets from list of cells with VBA code

Create sequence worksheets from list of cells with Kutools for Excel


arrow blue right bubble Create sequence worksheets from list of cells with VBA code

The following VBA code can help you add some worksheets which are named based on the cell contents after existing worksheets. Please do as this:

1. Hold down the ALT + F11 keys, then it opens the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and paste the following code in the Module Window.

VBA code: add sequence worksheets based on list of cells

Sub CreateWorkSheetByRange()
'Update 20130829
Dim WorkRng As Range
Dim Ws As Worksheet
Dim arr As Variant
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
arr = WorkRng.Value
Application.ScreenUpdating = False
For i = 1 To UBound(arr, 1)
    For j = 1 To UBound(arr, 2)
        Set Ws = Worksheets.Add(after:=Application.ActiveSheet)
        Ws.Name = arr(i, j)
    Next
Next
Application.ScreenUpdating = True
End Sub

3. Then press F5 key to run this code, and then a prompt box will be popped out for you to select the range that you want to use. See screenshot:

doc-create-sheets-from-list2

4. And then click OK, the worksheets which are named by the cell values have been added after the existing worksheet. See screenshot:

doc-create-sheets-from-list3

Notes:

1. The new worksheets will be inserted after the current worksheet.

2. If the selected range included blank cells, the worksheets are named based on default. See screenshots:

doc-create-sheets-from-list4
-1
doc-create-sheets-from-list5

arrow blue right bubble Create sequence worksheets from list of cells with Kutools for Excel

Here, I introduce a handy tool-Kutools for Excel, with its Create Sequence Worksheets, you can quickly create worksheets with month name, day name, custom list and so on.

Kutools for Excel includes more than 300 handy Excel tools. Free to try with no limitation in 30 days. Get it Now.

After installing Kutools for Excel, please do as following steps:

1. Select the range that you want to create worksheets based on.

2. Click Enterprise > Worksheet Tools > Create Sequence Worksheets, see screenshot:

doc-create-sheets-from-list6

3. In the Create Sequence Worksheets dialog box, choose the worksheet type that you want to create the new sequence worksheets, and then check Data in a range option, see screenshot:

doc-create-sheets-from-list7

4. Then click OK to close the dialog box, and a new workbook which contains the worksheets are named by the selected range data has been created. See screenshot:

doc-create-sheets-from-list8

Notes:

1. If you choose Sheet 1 or Sheet 2, the new worksheets are created will be as the same formatting as Sheet 1 or Sheet 2.

2. The new worksheets are created in a new workbook.

3. If the selected range included blank cells, the worksheets are named based on default. See screenshots:

doc-create-sheets-from-list9
-1
doc-create-sheets-from-list10

Click to know more about this Create Sequence Worksheets feature.


Related article:

How to Add New Worksheets with Customized Names in Excel?

Best Office Productivity Tools

Supports Office/Excel 2007-2021 and 365  |  Available in 44 Languages  |  Easy to Uninstall Completely

Popular Features: Find/Highlight/Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need Is Just A Click Away...

Supercharge Your Excel Skills: Experience Efficiency Like Never Before with Kutools for Excel  (Full-Featured 30-Day Free Trial)

kte tab 201905

60-Day Unconditional Money-Back GuaranteeRead More... Free Download... Purchase... 

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day! (Full-Featured 30-Day Free Trial)
60-Day Unconditional Money-Back GuaranteeRead More... Free Download... Purchase... 
 
Comments (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How to add bydefault table with row name and column name on sheets after creating sheets using command button. Please help.
This comment was minimized by the moderator on the site
How can the code be modified to copy a worksheet labeled "Template" and rename it to the values in the list selected in the range? I tried modifying the "worksheets.Add" code to "Worksheets("Template").Copy but it just makes copies with the worksheets labeled "Template(1)", "Template(2)", etc. Also, is there a way to put the tabs in numerical order as they are added?
This comment was minimized by the moderator on the site
Hi, Would it be possible to set-up a template for the new sheets created, instead of blank worksheets. Thanks Dave
This comment was minimized by the moderator on the site
Hi, I want to create invoices using excel and need to know whether is there a way to auto generate the second continuation page when the items on the first page exceed the A4 page layout that I have predefined? Any help is appreciated.
This comment was minimized by the moderator on the site
Could you modify the VBA code so that if the worksheet exists, it is skipped over? As it exists now, running the code a second time on the same range will create numbered worksheets. Thanks! Chris
This comment was minimized by the moderator on the site
Hello, Can I exclude blanks and automatically copy data with is behind the name? This data is generated from a pivot and I want to have all the names in different tabs with the data behind it in the layout. name1 data data data blank data data data blank Name 2 Thanks!
This comment was minimized by the moderator on the site
I need to duplicate one sheet when making all these new sheets from a list. Can you add the code for that? Thanks!
This comment was minimized by the moderator on the site
You can right click the tab and choose "move or copy" to duplicate it.
This comment was minimized by the moderator on the site
Very useful. thank you
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations