Michael M
Well-known Member
- Joined
- Oct 27, 2005
- Messages
- 21,835
- Office Version
- 365
- 2019
- 2013
- 2007
- Platform
- Windows
Hi All
Having a moment.
I modified this code from Snowblizz....but it won't work.
Doesn't error out just runs, with no color changes.
Basically, the comment in cell "F" makes the color of the shape ( Oval) change
I'm missing something simple and it's finally got into my head.....
Any assistance appreciated
Having a moment.
I modified this code from Snowblizz....but it won't work.
Doesn't error out just runs, with no color changes.
Basically, the comment in cell "F" makes the color of the shape ( Oval) change
I'm missing something simple and it's finally got into my head.....
Any assistance appreciated
Code:
Sub CLChange()
'SnowBlizz
Dim i As Integer, cell As Variant, lr As Long
Dim colourNr As Integer
Application.ScreenUpdating = False
On Error Resume Next
Sheets("Sheet1").Activate
For i = 10 To 32
Select Case Range("F" & i).Value
Case "On Target"
colourNr = 3
Case "May Need Attention"
colourNr = 47
Case "Urgent attention Reqd"
colourNr = 10
End Select
With ActiveSheet.Shapes(Range("F" & i).Value)
.ShapeRange.Fill.ForeColor.SchemeColor = colourNr
End With
Next i
Application.ScreenUpdating = True
End Sub