Results 1 to 4 of 4

List worksheet names in active worksheet By Excluding Specific Sheets

Threaded View

  1. #1
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Hyderbad
    MS-Off Ver
    Excel 2003
    Posts
    122

    Smile List worksheet names in active worksheet By Excluding Specific Sheets

    Hi,

    I need to list of sheets names in the workbook, but i need to exclude some specific sheets like

    Sheet Names to exclude : SList, Mail, Dsheet

    Please modify the code

    Sub GeListSht()
        Dim i As Integer
            k = Sheets(Array("SList", "Mail", "DSheet"))
            For i = 1 To Sheets.Count
                If Sheets(i).Name <> k Then
                Sheets("StoreList").Cells(i, 6) = Sheets(i).Name
                End If
            Next i
    End Sub
    Last edited by jagadeesh.rt; 10-17-2014 at 09:04 AM. Reason: Typo Mistake

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Filtering a list of Names from Worksheet1 onto Worksheet 2 based on specific criteria
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2014, 05:19 AM
  2. Selecting an active worksheet AND an active table that keep changing names!
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2014, 10:22 PM
  3. Replies: 6
    Last Post: 08-16-2012, 10:02 AM
  4. Replies: 2
    Last Post: 07-25-2012, 04:15 PM
  5. Replies: 2
    Last Post: 09-17-2009, 05:07 PM

Tags for this Thread

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