Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I want to Display the worksheet name on the Excel Spreadsheet itself.
ie. On Worksheet1, Cell A1 = Worksheet1 How do I do this without having C:\Desktop\Book1.xls\Worksheet1?? |
#2
![]() |
|||
|
|||
![]() "Rowf" wrote in message ... I want to Display the worksheet name on the Excel Spreadsheet itself. ie. On Worksheet1, Cell A1 = Worksheet1 How do I do this without having C:\Desktop\Book1.xls\Worksheet1?? You have to make a User Defined Function. Start the Visual Basic Editor, insert a new module and enter Public Function wks() As String wks = Application.Caller.Parent.Name End Function Now, if you enter =wks() in a cell in any worksheet, wks will return the name of that worksheet. /Fredrik |
#3
![]() |
|||
|
|||
![]()
Rowf
Enter in any cell on a sheet. =MID(CELL("FILENAME",A1),FIND("]",CELL("FILENAME",A1))+1,255) File must have been saved at least once. Gord Dibben Excel MVP On Wed, 30 Mar 2005 10:17:03 -0800, "Rowf" wrote: I want to Display the worksheet name on the Excel Spreadsheet itself. ie. On Worksheet1, Cell A1 = Worksheet1 How do I do this without having C:\Desktop\Book1.xls\Worksheet1?? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
Shared Excel File keeps growing........ | Excel Discussion (Misc queries) | |||
import .CSV file to XP EXcel 2003 worksheet, the seperator is com. | New Users to Excel | |||
Excel 2000 file when opened in Excel 2003 generates errors? | Excel Discussion (Misc queries) | |||
Problem opening an XML file in Excel - getting "ns1:macrosPresent" | Excel Discussion (Misc queries) |