A worksheet can be identified by its name such as in this example:
Dim mysheet As Worksheet
Set mysheet = ThisWorkbook.Sheets("My Sheetname")
Now I wonder if a worksheet can be identified other than by its name, for example by some unique id or some property or whatever.
My problem is following:
Referring to the code snippet above: if a user changes the name of the worksheet (e.g. from "My Sheetname" to "Your Sheetname"), the snippet obviously won't work anymore.
See Question&Answers more detail:os