Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Return the name of a range

Hi all,

I have a problem of returning the name of a range: Here is the problem:

Range("A1").Name = "ABC"
? range("A1").Name
=Sheet1!$A$1

How can I programmatically return the range name of a range in "A1"
notation? Thanks a lot.

Frederick Chow
Hong Kong.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Return the name of a range



--
---
Regards,
Norman



"Frederick Chow" wrote in message
...
Hi all,

I have a problem of returning the name of a range: Here is the problem:

Range("A1").Name = "ABC"
? range("A1").Name
=Sheet1!$A$1

How can I programmatically return the range name of a range in "A1"
notation? Thanks a lot.

Frederick Chow
Hong Kong.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Return the name of a range

Hi Frederick,

Try:

Range("A1").Name.Name


---
Regards,
Norman



"Frederick Chow" wrote in message
...
Hi all,

I have a problem of returning the name of a range: Here is the problem:

Range("A1").Name = "ABC"
? range("A1").Name
=Sheet1!$A$1

How can I programmatically return the range name of a range in "A1"
notation? Thanks a lot.

Frederick Chow
Hong Kong.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Return the name of a range

Thanks very much Norman!

The solution seems really strange. What is the meaning of ".name.name"?
Thanks!

Frederick Chow

"Norman Jones" wrote in message
...
Hi Frederick,

Try:

Range("A1").Name.Name


---
Regards,
Norman



"Frederick Chow" wrote in message
...
Hi all,

I have a problem of returning the name of a range: Here is the problem:

Range("A1").Name = "ABC"
? range("A1").Name
=Sheet1!$A$1

How can I programmatically return the range name of a range in "A1"
notation? Thanks a lot.

Frederick Chow
Hong Kong.





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Return the name of a range

Hi Frederick,

The solution seems really strange. What is the meaning of ".name.name"?


See VBA help for the Name property:

'===================
Name Property

Returns or sets the name of the object. The name of a Range object is a Name
object. For every other type of object, the name is a string.

'<<===================

---
Regards,
Norman



"Frederick Chow" wrote in message
...
Thanks very much Norman!

The solution seems really strange. What is the meaning of ".name.name"?
Thanks!

Frederick Chow

"Norman Jones" wrote in message
...
Hi Frederick,

Try:

Range("A1").Name.Name


---
Regards,
Norman





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return date if in range, else return blank LisaL Excel Worksheet Functions 1 July 22nd 09 03:23 PM
return min. of range except 0 Melissa Excel Discussion (Misc queries) 2 January 11th 06 12:14 PM
Return to range gavmer[_8_] Excel Programming 4 May 18th 04 02:26 AM
Return Range in VB ray Excel Programming 4 December 11th 03 08:12 PM
How do I return the name of a Range? **Archie** Excel Programming 1 November 13th 03 11:31 PM


All times are GMT +1. The time now is 01:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"