How can we retrieve the code name from excel vba using java script

Hello Experts,

Is there any way to retrieve the code name of the worksheet in excel workbook using java script


This is one way

But may I know what is the reason to use it like this? And what do you mean by code name in excel?


Code Name is the name of the sheet which is defined in the vb developer console which remains unchanged even if you change the sheetname of the excel.

The reason I want to retrieve the code name of the sheet is when the user will upload the file I need to compare its code name with the expected code name and make sure that the user has not manipulated the same before uploading