ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Returning the range name in VBA (https://www.excelbanter.com/excel-programming/313280-returning-range-name-vba.html)

John Tjia[_4_]

Returning the range name in VBA
 

Just the elegant solution I was looking for

--
John Tji
-----------------------------------------------------------------------
John Tjia's Profile: http://www.excelforum.com/member.php...nfo&userid=468
View this thread: http://www.excelforum.com/showthread.php?threadid=26848


Tom Ogilvy

Returning the range name in VBA
 
You have a good solution, but just to answer on of your questions.

Activecell.Name.Name

returns the range name if it has one, otherwise it raises an error.

--
Regards,
Tom Ogilvy


"John Tjia" wrote in message
...

Just the elegant solution I was looking for!


--
John Tjia
------------------------------------------------------------------------
John Tjia's Profile:

http://www.excelforum.com/member.php...fo&userid=4681
View this thread: http://www.excelforum.com/showthread...hreadid=268487





All times are GMT +1. The time now is 12:49 PM.

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