Results 1 to 5 of 5

Loop through sheets until tab colour is green

Threaded View

  1. #1
    Registered User
    Join Date
    02-12-2007
    Posts
    88

    Angry Loop through sheets until tab colour is green

    I want my macro to loop through the sheets in my workbook until it finds one that is green.

    I tried:

    Do Until ActiveWorkbook.Sheets(i)Tab.ColorIndex = 50
        i = i + 1
        Sheets(i).Select
    Loop
    But it didn't work. Any ideas?
    Last edited by mattsgr1; 03-28-2007 at 06:59 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