+ Reply to Thread
Results 1 to 2 of 2

how to print list of all worksheet names in a workbook?

  1. #1
    BAM100
    Guest

    how to print list of all worksheet names in a workbook?

    Any way to do this? Sorry for such a basic question.

    Thanks.

  2. #2
    Richard
    Guest

    RE: how to print list of all worksheet names in a workbook?

    Create a module and put this code in it. Run the macro.

    Sub PrintWorksheets()
    Dim wks As Worksheet
    Dim rng As Range

    Set rng = Range("a1")

    For Each wks In Worksheets
    rng.Value = wks.Name
    Set rng = rng.Offset(1, 0)
    Next wks
    End Sub

    "BAM100" wrote:

    > Any way to do this? Sorry for such a basic question.
    >
    > Thanks.


+ 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