Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Is there an Excel function that returns the name of the worksheet that
contains this formula? I thought it might be part of cell("address"), which I could parse. But that seems to be true only if the cell is in another worksheet. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
See
http://www.mcgimpsey.com/excel/formu..._function.html In article .com, wrote: Is there an Excel function that returns the name of the worksheet that contains this formula? I thought it might be part of cell("address"), which I could parse. But that seems to be true only if the cell is in another worksheet. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How about a single line UDF:
Function wsheetname() wsheetname = Application.Caller.Parent.Name End Function -- Gary's Student " wrote: Is there an Excel function that returns the name of the worksheet that contains this formula? I thought it might be part of cell("address"), which I could parse. But that seems to be true only if the cell is in another worksheet. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
JE McGimpsey wrote:
See http://www.mcgimpsey.com/excel/formu..._function.html Thanks! Funny, I was gonna try cell("filename"), but I let "logic" get the better of me ("nah, filename has nothing to do with worksheet name, which, after all, is just an object within the file"). I need to remind myself to "throw caution to the wind" ;-). That does require that I save the workbook first. But I can live with that. Thanks again. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Sub sheetname() Range("d1").Value = Application.ActiveSheet.Name End Sub Vaya con Dios, Chuck, CABGx3 " wrote: Is there an Excel function that returns the name of the worksheet that contains this formula? I thought it might be part of cell("address"), which I could parse. But that seems to be true only if the cell is in another worksheet. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Custom functions calculating time arguments Help Desperate | Excel Worksheet Functions | |||
Offset function referencing worksheet | Excel Discussion (Misc queries) | |||
Function that Returns Worksheet Name | Excel Discussion (Misc queries) | |||
Worksheet Function - Find? | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions |