Created
January 30, 2015 07:16
-
-
Save ka9e/7343da13017333b20bcd to your computer and use it in GitHub Desktop.
plotting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub Sample1() | |
Dim c As Range | |
Dim val As Variant | |
For Each c In Range("B2:H8") | |
val = c.Value | |
Select Case val | |
Case 0 | |
myColor = xlGray75 | |
Case 1 To 64 | |
myColor = xlGray50 | |
Case 64 To 128 | |
myColor = xlGray25 | |
Case 128 To 192 | |
myColor = xlGray16 | |
Case 192 To 255 | |
myColor = xlSolid | |
End Select | |
c.Interior.Pattern = myColor | |
Next c | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment