#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Tab Names

Is there a way to change the 20 worksheets tab names to reflect what is in
the cells in Sheet1, cells A1:A20?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Tab Names

Hi there,

This would work...

Sub ChangeSheetNames()
Dim lSht As Long
For lSht = 1 To Worksheets.Count
Worksheets(lSht).Name = Worksheets(1).Cells(lSht, 1).Value
Next lSht
End Sub

Sheet names will need to be in cells A1:A20 on the first sheet of the
workbook, and sheets will be renamed in the order they appear in the sheet
tabs.

Ken Puls
www.officearticles.com


"Darren" wrote in message
...
Is there a way to change the 20 worksheets tab names to reflect what is in
the cells in Sheet1, cells A1:A20?



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
converting email address names in a range of cells to real names John Excel Worksheet Functions 1 May 19th 10 03:44 PM
using the Excel generic worksheet names instead of user-given names in code Paul Excel Discussion (Misc queries) 5 June 26th 09 08:44 PM
Sorting and matching rows of names with Socials with master list and eliminating the extra names Giacomo Excel Worksheet Functions 1 March 10th 07 01:52 AM
return all worksheet tab names and chart sheet tab names in report - an example DataFreakFromUtah Excel Programming 2 October 6th 04 08:09 PM
Change names of files in a folder to match names in Excel Column saybut Excel Programming 4 February 9th 04 06:26 PM


All times are GMT +1. The time now is 08:57 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"