Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Tab Name same as Cell - PART 2

First of..thanks for the previous help.

I'm running into a lil' problem. If I have more than one sheet i
fails.
--If I run the Worksheets(1).Name = Range("A1").Text
the only name it changes is the one for sheet1.

--If I run the
dim sh as worksheet
for each sh in Activeworkbook.worksheets
sh.name = sh.Cells(1,1).Value
Next

it also fails when there's more than one sheet

Is there a way to make it happen only in the active workshee
regardless if it is sheet 1 or sheet3???

thanks a millio

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Tab Name same as Cell - PART 2

Activesheet.Name = Activesheet.Range("A1").Text

--
Regards,
Tom Ogilvy

"halem2 " wrote in message
...
First of..thanks for the previous help.

I'm running into a lil' problem. If I have more than one sheet it
fails.
--If I run the Worksheets(1).Name = Range("A1").Text
the only name it changes is the one for sheet1.

--If I run the
dim sh as worksheet
for each sh in Activeworkbook.worksheets
sh.name = sh.Cells(1,1).Value
Next

it also fails when there's more than one sheet

Is there a way to make it happen only in the active worksheet
regardless if it is sheet 1 or sheet3???

thanks a million


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Tab Name same as Cell - PART 2

thanks Tom. thank

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to cut part of a text from one cell and automatically paste itonto another cell Sonja[_2_] Excel Discussion (Misc queries) 6 August 17th 09 11:35 PM
Search/Match/Find ANY part of string to ANY part of Cell Value TWhizTom Excel Worksheet Functions 0 July 21st 08 08:16 PM
copy selected part number of text from one cell into another cell orewa Excel Discussion (Misc queries) 1 April 11th 08 01:30 PM
Display contents of cell in another cell as part of text string? [email protected] New Users to Excel 3 July 8th 06 07:44 PM
Can you make a cell with a diagonal, so that you can edit the upper and lower part of the cell? g wills New Users to Excel 3 February 17th 05 10:23 PM


All times are GMT +1. The time now is 03:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"