I want to list all worksheets name in one sheet. To do that I thought to add variable to the function I found before (where it says 1 I thought to change it to row number so when I copy function it will list the sheets names. Appreciate any help or new suggestions how to acheive that.
Returning The Name Of The Next Worksheet
The following function will return the name of the next worksheet.
Function NextSheetName() As String
Application.Volatile True
With Application.Caller.Parent
NextSheetName = _
.Parent.Worksheets((.Index Mod .Parent.Worksheets.Count) + 1).Name
End With
End Function
Returning The Name Of The Next Worksheet
The following function will return the name of the next worksheet.
Function NextSheetName() As String
Application.Volatile True
With Application.Caller.Parent
NextSheetName = _
.Parent.Worksheets((.Index Mod .Parent.Worksheets.Count) + 1).Name
End With
End Function