ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to get the name of a range i deternimed (https://www.excelbanter.com/excel-programming/336634-how-get-name-range-i-deternimed.html)

EXCEL NEWS

How to get the name of a range i deternimed
 
hi,

i mane a range ,for example, gggg, and i want to get the name "gggg"
through

vba,what should i do.

thank you.





Tom Ogilvy

How to get the name of a range i deternimed
 
Range("gggg").Select
msgbox activeCell.Name.Name

--
Regards,
Tom Ogilvy


"EXCEL NEWS" wrote in message
...
hi,

i mane a range ,for example, gggg, and i want to get the name "gggg"
through

vba,what should i do.

thank you.







Vasant Nanavati

How to get the name of a range i deternimed
 
?Range("C8:E13").Name.Name
gggg


"EXCEL NEWS" wrote in message
...
hi,

i mane a range ,for example, gggg, and i want to get the name "gggg"
through

vba,what should i do.

thank you.







EXCEL NEWS

How to get the name of a range i deternimed
 
hi, Tom and Vasant
Thanks for your advice.

but why it is name.name ,not names.name

thanks

"Vasant Nanavati" <vasantn AT aol DOT com wrote in message
...
?Range("C8:E13").Name.Name
gggg


"EXCEL NEWS" wrote in message
...
hi,

i mane a range ,for example, gggg, and i want to get the name "gggg"
through

vba,what should i do.

thank you.








Tom Ogilvy

How to get the name of a range i deternimed
 
While a range can have more than one name, you can only retrieve one of them
through the range object. So, that appears to be just the way they designed
it.

--
Regards,
Tom Ogilvy



"EXCEL NEWS" wrote in message
...
hi, Tom and Vasant
Thanks for your advice.

but why it is name.name ,not names.name

thanks

"Vasant Nanavati" <vasantn AT aol DOT com wrote in message
...
?Range("C8:E13").Name.Name
gggg


"EXCEL NEWS" wrote in message
...
hi,

i mane a range ,for example, gggg, and i want to get the name "gggg"
through

vba,what should i do.

thank you.











All times are GMT +1. The time now is 08:17 AM.

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