+ Reply to Thread
Results 1 to 6 of 6

Selecting worksheets in a workbook based on criteria

Hybrid View

  1. #1
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    You can loop through the sheets something like this.

    Puts the Sheet name in Range A1 and makes it bold

    Sub FormatSht18()
    Dim Wsht As Worksheet
    For Each Wsht In Worksheets
        If Wsht.Name Like "*18?*" Then
           With Wsht.Range("A1")
                 .Font.Bold = True
                .Value = Wsht.Name
            End With
        End If
    Next Wsht
    End Sub
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  2. #2
    Registered User
    Join Date
    02-19-2004
    Posts
    57
    thanks alot VBA Noob!

    That works just great now and yes faster too...
    Any help is greatly appreciated

    Josnah

+ 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