Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
AliceNXLand
 
Posts: n/a
Default How can Excel create a list of tabs on a worksheet?

I have a large document with constantly changing tabs. I would like to
create a document at the front with the tab names. Is there a way to do this
automatically? Or would it be quicker to just type them in?
  #2   Report Post  
Paul B
 
Posts: n/a
Default

Alice, here is one way,

Sub Sheet_Names()
Dim ws As Worksheet
With Worksheets.Add
.Name = "Sheet Names"
.Move befo=Worksheets(1)
End With
Sheets("Sheet Names").Activate
Range("a1").Activate
For Each ws In Worksheets
If ws.Name < "Sheet Names" Then
ActiveCell.Formula = ws.Name
ActiveCell.Offset(1, 0).Select
End If
Next
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"AliceNXLand" wrote in message
...
I have a large document with constantly changing tabs. I would like to
create a document at the front with the tab names. Is there a way to do
this
automatically? Or would it be quicker to just type them in?



  #3   Report Post  
AliceNXLand
 
Posts: n/a
Default

Thanks, Paul, I still need help with where to paste this information. I'm
not really familiar with macros. I understand the concept, but, haven't
practiced much. If this will take too long on the forum, please e-mail me.
Thanks, VERY MUCH.

"Paul B" wrote:

Alice, here is one way,

Sub Sheet_Names()
Dim ws As Worksheet
With Worksheets.Add
.Name = "Sheet Names"
.Move befo=Worksheets(1)
End With
Sheets("Sheet Names").Activate
Range("a1").Activate
For Each ws In Worksheets
If ws.Name < "Sheet Names" Then
ActiveCell.Formula = ws.Name
ActiveCell.Offset(1, 0).Select
End If
Next
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"AliceNXLand" wrote in message
...
I have a large document with constantly changing tabs. I would like to
create a document at the front with the tab names. Is there a way to do
this
automatically? Or would it be quicker to just type them in?




  #4   Report Post  
AliceNXLand
 
Posts: n/a
Default

Thanks Paul! I got it to work. It's great. Now I can use this one to build
on for other stuff I need. Forget the last message.

"AliceNXLand" wrote:

Thanks, Paul, I still need help with where to paste this information. I'm
not really familiar with macros. I understand the concept, but, haven't
practiced much. If this will take too long on the forum, please e-mail me.
Thanks, VERY MUCH.

"Paul B" wrote:

Alice, here is one way,

Sub Sheet_Names()
Dim ws As Worksheet
With Worksheets.Add
.Name = "Sheet Names"
.Move befo=Worksheets(1)
End With
Sheets("Sheet Names").Activate
Range("a1").Activate
For Each ws In Worksheets
If ws.Name < "Sheet Names" Then
ActiveCell.Formula = ws.Name
ActiveCell.Offset(1, 0).Select
End If
Next
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"AliceNXLand" wrote in message
...
I have a large document with constantly changing tabs. I would like to
create a document at the front with the tab names. Is there a way to do
this
automatically? Or would it be quicker to just type them in?




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 can I create multiple rows of worksheet tabs in a workbook? kdzugan Excel Discussion (Misc queries) 1 March 8th 05 03:13 PM
Excel shifts to wrong worksheet automatically Tom77 Excel Worksheet Functions 1 February 24th 05 08:10 PM
Worksheet Tabs The Good Deeds Team Excel Discussion (Misc queries) 6 February 18th 05 09:59 PM
Copying blank excel worksheet into additional excel workbooks Deb Excel Discussion (Misc queries) 10 February 4th 05 12:25 AM
List box not being displayed in second worksheet Brian Excel Discussion (Misc queries) 2 January 27th 05 04:35 PM


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