Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-13-2013, 11:16 PM
Catalin.B Catalin.B is offline getting the worksheet name in a cell Windows Vista getting the worksheet name in a cell Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

To do that, there is a way: Define a name, like SheetName, and place in the "Refers to:" field, this formula:
=GET.CELL(62;Sheet2!$G$26) (if you want another sheet, change the reference in red)
Then, in any cell in any sheet, you will get the sheet2 name with:
=RIGHT(SheetName;LEN(SheetName)-FIND("]";SheetName))
You can simply use:
=SheetName
but you will get the sheet name precedeed by the workbook name...
For a list of information that can be obtained from Get.Cell function, (the function is available only in defined names, or in VB), you can check this:
http://www.mrexcel.com/forum/excel-q...arguments.html

Or, another way, is to use Cell function, available in sheet functions:
=RIGHT(CELL("filename";J16);LEN(CELL("filename";J1 6))-FIND("]";CELL("filename";J16)))
The =CELL("filename";J16) formula extracts the full path of the reference...
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
getting the worksheet name in a cell How to summarise different worksheet to a summary worksheet samkiewhock Excel 1 09-06-2012 03:34 AM
getting the worksheet name in a cell Cell formating on Protected worksheet AHB Excel Programming 2 02-27-2012 10:25 AM
getting the worksheet name in a cell "Auto-populating" data-worksheet to worksheet. meggenm Excel 4 02-04-2012 02:04 AM
Auto-populate an MS Word table cell with text from a diff cell? dreamrthts Word Tables 0 03-20-2009 01:49 PM
click a cell to go to a worksheet victor Excel 0 10-27-2006 02:57 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft