Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bol
 
Posts: n/a
Default How to show the defined name of another cell

Is it possible to show the defined name (from insert/name/define) of another
cell? For instance: cell B1 is defined as "abc". What do i type in cell A1 to
get this texts text ("abc") from cell B1?

Please help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
 
Posts: n/a
Default How to show the defined name of another cell

This is as far as I can get today.
If A11 is named ABC then =MYNAME("$A$11") will return ABC

Function myname(rng)
Set nms = ActiveWorkbook.Names
myname = "BLANK"
For r = 1 To nms.Count
If rng = nms(r).RefersToRange.Address Then
myname = nms(r).Name
End If
Next
End Function

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Bol" wrote in message
...
Is it possible to show the defined name (from insert/name/define) of
another
cell? For instance: cell B1 is defined as "abc". What do i type in cell A1
to
get this texts text ("abc") from cell B1?

Please help!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bol
 
Posts: n/a
Default How to show the defined name of another cell

Hi, thanks for the respond.

I couldn't get that udf to work properly. I just get "blank" in the cell
containing the myname-formula event though the refered cell has a defined
name.

Please help!

Bernard Liengme skrev:

This is as far as I can get today.
If A11 is named ABC then =MYNAME("$A$11") will return ABC

Function myname(rng)
Set nms = ActiveWorkbook.Names
myname = "BLANK"
For r = 1 To nms.Count
If rng = nms(r).RefersToRange.Address Then
myname = nms(r).Name
End If
Next
End Function

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Bol" wrote in message
...
Is it possible to show the defined name (from insert/name/define) of
another
cell? For instance: cell B1 is defined as "abc". What do i type in cell A1
to
get this texts text ("abc") from cell B1?

Please help!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bol
 
Posts: n/a
Default How to show the defined name of another cell

I just realised your udf works, but only if you add the "" and use the
absolute adress ($<letter$<number), as you pointed out with:
=MYNAME("$A$11") . Sorry for my inattention.

The problem is that the udf should be edited so that the quotation "" and
absolute references doesn't need to be included. This because these premises
make the MYNAME(<address) not work with Excel's AutoFill function. And the
AutoFill is very important for me to be able to use.







Hi, thanks for the respond.

I couldn't get that udf to work properly. I just get "blank" in the cell
containing the myname-formula event though the refered cell has a defined
name.

Please help!

Bernard Liengme skrev:

This is as far as I can get today.
If A11 is named ABC then =MYNAME("$A$11") will return ABC

Function myname(rng)
Set nms = ActiveWorkbook.Names
myname = "BLANK"
For r = 1 To nms.Count
If rng = nms(r).RefersToRange.Address Then
myname = nms(r).Name
End If
Next
End Function

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Bol" wrote in message
...
Is it possible to show the defined name (from insert/name/define) of
another
cell? For instance: cell B1 is defined as "abc". What do i type in cell A1
to
get this texts text ("abc") from cell B1?

Please help!




Reply
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
Want #VALUE! to show as blank cell JoeyW Excel Worksheet Functions 2 November 4th 05 09:24 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Problem with IF condition or vector lookup? J-Philippe Excel Worksheet Functions 4 January 15th 05 08:41 PM
Show Blank is cell value=0 but count as a zero in sum. How to format this cell ? Markus Obermayer Excel Worksheet Functions 1 January 4th 05 08:01 PM
cell reference show cell name (ie. D45) and not cell value ria Excel Worksheet Functions 4 November 6th 04 04:38 AM


All times are GMT +1. The time now is 03:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"