function to get active worksheet name

In the mean time you can use the following formula:
=REPLACE(CELL("filename",A1),1,FIND("]",CELL("filename",A1)),"")
_________________
Hope this helps.
Kind regards,<font size="5"><sup><span style="text-decoration: overline">AL</span></sup><u><sub>CHARA</sub></u></font>
This message was edited by Al Chara on 2002-07-25 11:22
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Goto INSERT|NAME|DEFINE
Type SheetName under "Names in workbook:"
Type =GET.CELL(5,A1) under "Refers to:"

Then go into a cell on your worksheet and type SheetName
It will return the Sheet name

I can't seem to find what I am looking forward. You can always try the following:

Goto INSERT|NAME|DEFINE
Type SheetName under "Names in workbook:"
Type =REPLACE(GET.DOCUMENT(1),1,FIND("]",GET.DOCUMENT(1)),"") under "Refers to:"

Then go into a cell on your worksheet and type SheetName
It will return the Sheet name
 
Upvote 0
Hi

i have use VBA function NM and can get the active sheet name in cell but please tell me how can i use it in a formula or in chart series then i can copy and paste my data on other sheets and it will take sheets name automatically on other sheets.
coz i have 40 sheets with same data and same charts i can edit my data simultaneously by grouping sheets but i am unable to edit charts please help.
 
Upvote 0
This thread has long been dormant but I created a Name (ThisWS) in the Name Manager with the following formula in the "Refers to:" section: =MID(CELL("filename",INDIRECT("A1")),FIND("]",CELL("filename",INDIRECT("A1")))+1,255).
Referring to ThisWS (as =ThisWS) in any sheet returns the sheet name of the sheet (not just the last sheet calculated). Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top