LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Finding Names associated with a cell

Perhaps I should have been clearer, but I assumed associated meant the
entire range encompassed by the named range.

Example:
? selection.Name.Name
NameA1D4
? selection.Address
$A$1:$D$4

And selecting only A1 in the above situation would raise an error. Also,
to be more general, if no name is assigned to the selected range, an error
would also be raised for Selection.Name.Name.

--
Regards,
Tom Ogilvy


"Myrna Larson" wrote in message
...
Hi, Tom:

If the range A1:D4 is named, but A1 by itself does not have a name, won't

this
produce an error?

Myrna Larson

PS: Somehow (don't know why right now), I thought he meant that a given

cell
was part of several named ranges. That's why I suggested a loop.


On Mon, 9 Aug 2004 22:19:29 -0400, "Tom Ogilvy" wrote:

Range("A1").Name.Name

will give you the name associated with A1 if it has one.






 
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
Finding the names that are not there Learning Excel Excel Discussion (Misc queries) 5 December 16th 07 05:52 PM
Finding unique names--then converting those names to unique number Proton Excel Discussion (Misc queries) 7 June 13th 07 10:22 PM
Finding Names exsam21 Excel Worksheet Functions 1 January 17th 06 09:40 PM
Finding First and Last Worksheet Names [email protected] Excel Discussion (Misc queries) 4 May 13th 05 04:22 PM
finding names and copying Bob Phillips[_6_] Excel Programming 0 March 3rd 04 05:49 PM


All times are GMT +1. The time now is 04:04 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"