ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   identify the name of the activecell not its address (https://www.excelbanter.com/excel-programming/311500-identify-name-activecell-not-its-address.html)

RogerTheDodgerTheDirtyOldSod

identify the name of the activecell not its address
 
i need to assign the range name of the acivecell to a variable - How!!

Otto Moehrbach[_6_]

identify the name of the activecell not its address
 
Dim MyVariable as String
MyVariable = ActiveCell.Name.Name
HTH Otto
"RogerTheDodgerTheDirtyOldSod"
t.com wrote in message
...
i need to assign the range name of the acivecell to a variable - How!!




Tom Ogilvy

identify the name of the activecell not its address
 
ActiveCell.Name.Name

if it doesn't have a name, this causes an error. (the cell itself must be
named, not this cell be part of a larger number of cells with a name).

--
Regards,
Tom Ogilvy

"RogerTheDodgerTheDirtyOldSod"
t.com wrote in message
...
i need to assign the range name of the acivecell to a variable - How!!





All times are GMT +1. The time now is 01:47 AM.

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