ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell name (https://www.excelbanter.com/excel-programming/405161-cell-name.html)

ranswert

Cell name
 
I have the following code:
dim a as string
a = ActiveCell.name
MsgBox (a)

I want to get the name of a cell that I have given it. What I get is:

=sheet1!$E$11

instead of the name I have given it.

How do I correct this?
Thanks

Jim Thomlinson

Cell name
 
msgbox Activecell.Name.Name

There is a bit of an explanation that goes this that but suffice it to say
this work...
--
HTH...

Jim Thomlinson


"ranswert" wrote:

I have the following code:
dim a as string
a = ActiveCell.name
MsgBox (a)

I want to get the name of a cell that I have given it. What I get is:

=sheet1!$E$11

instead of the name I have given it.

How do I correct this?
Thanks


ranswert

Cell name
 
worked great
Thank You

"Jim Thomlinson" wrote:

msgbox Activecell.Name.Name

There is a bit of an explanation that goes this that but suffice it to say
this work...
--
HTH...

Jim Thomlinson


"ranswert" wrote:

I have the following code:
dim a as string
a = ActiveCell.name
MsgBox (a)

I want to get the name of a cell that I have given it. What I get is:

=sheet1!$E$11

instead of the name I have given it.

How do I correct this?
Thanks



All times are GMT +1. The time now is 06:00 PM.

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