Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kelroy D B
 
Posts: n/a
Default Can one print a list of worksheet tab labels contained in a workb.

Is it possible to print a list of the tab labels contained within an Excel
workbook. If so, how?
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

You can list the worksheet names in a new sheet and then
print the list from the

Sub ListWSNames()
Dim sh As Worksheet
Dim i As Long

With ActiveWorkbook
.Worksheets(1).Select
Set sh = .Worksheets.Add
End With

With sh
For i = 2 To ActiveWorkbook.Worksheets.Count
.Cells(i, "A").Value = Worksheets(i).Name
Next i
.Cells(1, "A").Value = "Sheet " & _
"Names (excl. this one)"
End With

Range("A:A").EntireColumn.AutoFit

End Sub

---
HTH
Jason
Atlanta, GA

-----Original Message-----
Is it possible to print a list of the tab labels

contained within an Excel
workbook. If so, how?
.

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
List box not being displayed in second worksheet Brian Excel Discussion (Misc queries) 2 January 27th 05 04:35 PM
Print all records labels Kathleane Excel Discussion (Misc queries) 4 January 27th 05 04:05 AM
List on different worksheet bevpike Excel Discussion (Misc queries) 3 January 25th 05 10:39 PM
print a specific area within a worksheet by clicking on print? honclub Excel Worksheet Functions 1 October 29th 04 03:22 AM
Validation - List - Separate Worksheet J. Osborne Excel Worksheet Functions 1 October 28th 04 04:23 PM


All times are GMT +1. The time now is 12:47 AM.

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

About Us

"It's about Microsoft Excel"