

The punch line of the code is the line Sheets(Old_Name).Name = New_Name.➤ You will find the name of your selected sheet changed beautifully to the desired name ( Sheet1 to January in this example). The 2nd box will ask you to enter the new name of the worksheet. The 1st box will ask you to enter the name of the old sheet that you want to change. Select Rename_Sheet (The name of the Macro) and click on Run.

➤ Then come back to any of your worksheets and press ALT+F8 on your keyboard. ➤ Save the workbook as Excel Macro-Enabled Workbook. ⧪ Step 4: Saving the Macro-Enabled Workbook
#Google sheet macro to copy a sheet and rename it how to#
Read More: How to Rename Sheet in Excel (6 Easy and Quick Methods)ġ. Today our objective is to rename the sheets with Visual Basic Application (VBA). The worksheets are named Sheet1, Sheet2, and Sheet3 respectively. Here we’ve three worksheets with the Sales Record of three months of a company called Mars Group. 2 Suitable Approaches to Rename Sheet with VBA in Excel (Single and Multiple Sheets)
