This post will guide you how to get the next sheet name in your current worksheet in excel. How do I get the next sheet name with VBA code in excel.
Getting the Next Sheet Name
If you want to quickly get the next sheet name in your active worksheet, you can define a user defined function in excel, just do the following steps:
#1 open your excel workbook and then click on “Visual Basic” command under DEVELOPER Tab, or just press “ALT+F11” shortcut.

#2 then the “Visual Basic Editor” window will appear.
#3 click “Insert” ->”Module” to create a new module

#4 paste the below VBA code into the code window. Then clicking “Save” button.

#5 back to the current worksheet, try to enter the below formula in Cell B1.

Related Posts
Find and Replace Multiple Values
This post will guide you how to find and replace multiple values at once with VBA macro or using formula in Excel. How do I make multiple find and replace in Excel. Suppose that you have a few cells containing ...
VBA Macro For VLOOKUP From Another Sheet
In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you how to use VBA code to vlookup data ...
How To Hide Every Other Row in Excel (Using VBA)
This post will show you how to hide alternate rows or columns in Excel or how to hide every third, fourth, fifth row or column in Excel. If you want to hide every other row in your current worksheet, how ...
How to Disable the Save As Prompt in Excel
This post will show you how to use a VBA Macro to save an Excel file and overwrite any existing file without a prompt so that you are going to get the little window that says file already exists do ...