Function SheetCodeNamed(sheetCodeName As String) As Worksheet
With ThisWorkbook
Set SheetCodeNamed = .Sheets(.VBProject.VBComponents(sheetCodeName).Properties("Index").Value)
End With
End Function
Sub test()
MsgBox SheetCodeNamed("Sheet1").Name
End Sub