Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi everyone:
I need to have the tab name for each sheet be the same a s the conten of, let's say, cell (1,1). I'm new at this and I solemly swear I did look at the object browse but could not find which object refers to the worksheet tab. thanks -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
dim sh as worksheet
for each sh in Activeworkbook.worksheets sh.name = sh.Cells(1,1).Value Next -- Regards, Tom Ogilvy "halem2 " wrote in message ... Hi everyone: I need to have the tab name for each sheet be the same a s the content of, let's say, cell (1,1). I'm new at this and I solemly swear I did look at the object browser but could not find which object refers to the worksheet tab. thanks! --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you want the cell to contains the tab name, use a formula like
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,99) If you want the tab name to be named the same as the contents of cell A1, you need to use VBA: Worksheets(1).Name = Range("A1").Text -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "halem2 " wrote in message ... Hi everyone: I need to have the tab name for each sheet be the same a s the content of, let's say, cell (1,1). I'm new at this and I solemly swear I did look at the object browser but could not find which object refers to the worksheet tab. thanks! --- Message posted from http://www.ExcelForum.com/ |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks Chip ...it's so straight forward that it makes me wanna kic
myself...you know where. thanks agai -- Message posted from http://www.ExcelForum.com |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options | Excel Discussion (Misc queries) | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing | Excel Discussion (Misc queries) | |||
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 | Excel Worksheet Functions | |||
How to create/run "cell A equals Cell B put Cell C info in Cell D | Excel Discussion (Misc queries) | |||
Question: Cell formula or macro to write result of one cell to another cell | Excel Programming |