How to add new sheet with specific name in Excel?
Sometimes, you want to create a new sheet and automatically name it with a specific name in Excel. In this article, we will show you two methods of adding new sheet with specific name in current workbook, as well as creating a worksheet with specific name in a new workbook in Excel.
Auto adding new sheet with specific name in current workbook with VBA code
Auto adding new sheet with specific name in a new workbook with Kutools for Excel
Auto adding new sheet with specific name in current workbook with VBA code
You can add a new sheet with certain name at the end of current workbook with following VBA code.
1. Press Alt + F11 keys simultaneously to open the Microsoft Visual Basic for Applications window.
2. In the Microsoft Visual Basic for Applications window, click Insert > Module.
3. Copy and paste below VBA code into the Module window.
VBA code: add new sheet with specific name at the end of current workbook
Sub CreateSheet()
'Updated by ExtendOffice 20181009
Dim xName As String
Dim xSht As Object
On Error Resume Next
xName = InputBox("Please enter a name for this new sheet ", "Kutools for Excel")
If xName = "" Then Exit Sub
Set xSht = Sheets(xName)
If Not xSht Is Nothing Then
MsgBox "Sheet cannot be created as there is already a worksheet with the same name in this workbook"
Exit Sub
End If
Sheets.Add(, Sheets(Sheets.count)).Name = xName
End Sub
4. Press F5 key to run the code. In the popping up Kutools for Excel dialog box, please enter a name for this sheet, and then click the OK button. See screenshot:
Then a new worksheet is created with specific name and located at the end of current workbook.
Auto adding new sheet with specific name in a new workbook with Kutools for Excel
In this section, we will introduce the Create Sequence Worksheets utility of Kutools for Excel. With this utility, you can easily add new sheet with specific name in a new workbook.
Before applying Kutools for Excel, please download and install it firstly.
1. For adding new sheet with specific name, you need to type this name into a cell in advance. And then click Kutools Plus > Worksheet > Create Sequence Worksheets.
2. In the Create Sequence Worksheets dialog box, select Blank worksheet in the Base Worksheet drop-down list, select Datain a range option, and specify the cell that contains the certain worksheet name, and finally click the OK button. See screenshot:
Then a new worksheet with this specific name from a cell is created in a new workbook immediately.
Notes:
If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
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!