Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all:
In excel 2003 VBA, is there a way of knowing if a cell (or groups of cells) have a name, and if so, what is that name? I know how to get all the defined names, but not for a particular cell. Thanks; Bob |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Dim myRng as range dim myName as string set myrng = worksheets("Sheet99").range("a1") myname = "" on error resume next myname = myrng.name.name on error goto 0 if myname = "" then msgbox "no name" else msgbox myName end if Bob wrote: Hi all: In excel 2003 VBA, is there a way of knowing if a cell (or groups of cells) have a name, and if so, what is that name? I know how to get all the defined names, but not for a particular cell. Thanks; Bob -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Dave. I did not know you can use .Name.Name
Bob "Dave Peterson" wrote in message ... Dim myRng as range dim myName as string set myrng = worksheets("Sheet99").range("a1") myname = "" on error resume next myname = myrng.name.name on error goto 0 if myname = "" then msgbox "no name" else msgbox myName end if Bob wrote: Hi all: In excel 2003 VBA, is there a way of knowing if a cell (or groups of cells) have a name, and if so, what is that name? I know how to get all the defined names, but not for a particular cell. Thanks; Bob -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating cell names from cell contents en masse | Excel Worksheet Functions | |||
Cell names = sheet names | Excel Worksheet Functions | |||
How to create table of cell names with the name's cell address | Excel Discussion (Misc queries) | |||
Multi names in one cell copied to single cell | Excel Programming | |||
move within ss by active cell position, NOT by cell names | Excel Programming |