Results 1 to 3 of 3

Here's a macro that lists sheet names!

Threaded View

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2010
    Posts
    14

    Here's a macro that lists sheet names!

    I found a macro that will list all the sheets in a workbook.
    Just replace the two "MasterSheet" with the sheet name you want the data in.
    (it will erase that sheet and list all the sheets in your workbook.


    Can anyone adjust this macro so it only lists the sheets with tab color red?




    Macro:


    Sub ListSheets()
    
    Dim ws As Worksheet
    Dim x As Integer
    
    x = 1
    
    Sheets("MasterSheet").Range("A:A").Clear
    
    For Each ws In Worksheets
    
         Sheets("MasterSheet").Cells(x, 1) = ws.Name
         x = x + 1
    
    Next ws
    
    End Sub
    Last edited by arlu1201; 02-13-2013 at 04:20 AM.

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