Reputation: 5540
It seems to me that normally objects representing worksheets are Sheet1
, Sheet2
, etc. And Sheet1.Name
returns its name which could be modified either in Excel or VBA.
However, I see in the following workbook database_GEV_V_2_3.xls
, the objects are Foglio1
, Foglio2
... And Foglio1.Name
returns Home
... Coud anyone tell me how this is possible? What did they do to name the sheet objects this way?
Edit1: Here is the available menu...
Upvotes: 0
Views: 38
Reputation: 35863
How you can change it manually:
VIEW
-->Properties Window
on menu bar (for Windows you can also press F4).Name
property on Properties Window
How to change it programmatically:
ThisWorkbook.VBProject.VBComponents("Foglio1").Name = "newName"
where "Foglio1"
is old name and "newName"
is new name.
Upvotes: 2