ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   worksheet Name and (Name) properties (https://www.excelbanter.com/excel-programming/278572-worksheet-name-name-properties.html)

Mikhail

worksheet Name and (Name) properties
 
There are two types of Name property of worksheet. For example, Sheet2
(DataSheet).
When I press F4 to see properties window, I have (name) Sheet2 and name
DataSheet.
In immediate window ? ActiveSheet.Name gives DataSheet.
How can I refer to (name) Sheet2. ? Activesheet.(Name) give error message.

Thanks, Mike510



Jan Karel Pieterse

worksheet Name and (Name) properties
 
Hi,

The (name) property is the codename of the sheet, the Name
property is the name you see on the Tab. If the Tab name
is "Tabname" and the codename is Sheet1:

Msgbox Worksheets("Tabname").Name

yields "Tabname"

and so does:

Msgbox Sheet1.Name

Regards,

Jan Karel Pieterse
Excel TA/MVP

-----Original Message-----
There are two types of Name property of worksheet. For

example, Sheet2
(DataSheet).
When I press F4 to see properties window, I have (name)

Sheet2 and name
DataSheet.
In immediate window ? ActiveSheet.Name gives DataSheet.
How can I refer to (name) Sheet2. ? Activesheet.(Name)

give error message.

Thanks, Mike510


.



All times are GMT +1. The time now is 02:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com