ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How can I make the names for Sheet tabs a reference to a cell? (https://www.excelbanter.com/excel-discussion-misc-queries/87135-how-can-i-make-names-sheet-tabs-reference-cell.html)

PDS

How can I make the names for Sheet tabs a reference to a cell?
 
I want the tab names in my workbook to be cell references. If it is a Macro
function I will need the formula.

saziz

How can I make the names for Sheet tabs a reference to a cell?
 

PDS,

This formula gets your sheet name in cell A1:

=MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)

Syed


--
saziz
------------------------------------------------------------------------
saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350
View this thread: http://www.excelforum.com/showthread...hreadid=539416


Gary''s Student

How can I make the names for Sheet tabs a reference to a cell?
 
This may help:

Sub Macro1()
Sheets(1).Select
Sheets(1).Name = Cells(1, 1).Value
End Sub

This tiny macro will set the name of the tab equal to the value in cell A1,
for the first tab..

It can be easily modified to loop over all tabs, use different cells, etc.
--
Gary''s Student


"PDS" wrote:

I want the tab names in my workbook to be cell references. If it is a Macro
function I will need the formula.



All times are GMT +1. The time now is 04:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com