+ Reply to Thread
Results 1 to 2 of 2

Can one print a list of worksheet tab labels contained in a workb.

  1. #1
    Kelroy D B
    Guest

    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. #2
    Jason Morin
    Guest

    Re: Can one print a list of worksheet tab labels contained in a workb.

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

    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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1