Results 1 to 3 of 3

Simple True/False Colouring (Not Conditional)

Threaded View

  1. #1
    Forum Contributor
    Join Date
    09-07-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    358

    Simple True/False Colouring (Not Conditional)

    I'm looking for a slightly better way of doing the following...

    Sub FalseTrueTest2()
    
        Dim cl As Range
        For Each cl In Range("A2:A" & Range("A" & Rows.Count).End(xlUp).Row)
            Select Case cl.Value
                Case Is = "True"
                    cl.Style = "Good"
                Case Is = "False"
                    cl.Style = "Bad"
            End Select
        Next
        
    End Sub
    Last edited by Hyflex; 02-13-2012 at 11:12 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