Getting the Next Sheet Name

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.

Get the position of the nth using excel vba1

#2 then the “Visual Basic Editor” window will appear.

#3 click “Insert” ->”Module” to create a new module

convert column number to letter3

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

get next sheet name1

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

get next sheet name2

Leave a Reply