ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Printing Tabs (https://www.excelbanter.com/excel-discussion-misc-queries/58766-printing-tabs.html)

Kathy@ACL

Printing Tabs
 
I would like to print a list of the tab names without printing the whole
document. Can anyone help me?

Gord Dibben

Printing Tabs
 
Kathy

You will need a macro.

''list of sheet names in a workbook - placed on a new worksheet
Sub ShowNames()
Set wkbkToCount = ActiveWorkbook
iRow = 1
With Sheets.Add
For Each ws In wkbkToCount.Worksheets
.Rows(iRow).Cells(1).Value = ws.Name
iRow = iRow + 1
Next
End With
End Sub


Gord Dibben Excel MVP

On Mon, 5 Dec 2005 09:01:02 -0800, Kathy@ACL
wrote:

I would like to print a list of the tab names without printing the whole
document. Can anyone help me?



All times are GMT +1. The time now is 11:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com