How To Create and Name Worksheets Based on List via Excel Macro?

Praveen Kumar Ganesan
Praveen Kumar Ganesan
Praveen Kumar Ganesan also called as GPKUMAR is the visionary Founder of Inavit Studio and Inavitnews, where technology meets storytelling. With a passion for innovation and...
1 Min Read

Excel allows you quite a lot of freedom to customize your user experience via the use of macros.

This tutorial will show you how to create and name worksheets using an existing list via a macro.

Create Worksheets Using a List via an Excel Macro

This code may help you to automatically create and rename worksheets, based on a list that exists in another sheet:

Sub CreateSheetsFromAList()
Dim MyCell As Range, MyRange As Range

Set MyRange = Sheets(“Summary”).Range(“A10”)
Set MyRange = Range(MyRange, MyRange.End(xlDown))

For Each MyCell In MyRange
Sheets.Add After:=Sheets(Sheets.Count) ‘creates a new worksheet
Sheets(Sheets.Count).Name = MyCell.Value ‘ renames the new worksheet
Next MyCell
End Sub

Share This Article
Praveen Kumar Ganesan also called as GPKUMAR is the visionary Founder of Inavit Studio and Inavitnews, where technology meets storytelling. With a passion for innovation and digital transformation, Praveen blends creativity with strategic thinking to craft compelling tech, gaming, and news content that resonates with a global audience.
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x