I am trying to fill some autoshapes with color if any text is entered into specific cells. This works just fine if numbers are entered, but doesn't work if letters are used, I have looked at some possible solutions but they all seem very complex, is there any way to easily transform below into testing for letters rather than numbers? (I have a very big code to correct)
Here is part of the code (which only Works with numbers):
If Range("C23") Or Range("C60") Or Range("C82") Or Range("C104") <> "" Then
ActiveSheet.Shapes("Cirkel 8").Fill.ForeColor.RGB = vbGreen
ActiveSheet.Shapes("Cirkel 9").Fill.ForeColor.RGB = vbGreen
ElseIf Range("C11") Or Range("C48") Or Range("C70") Or Range("C92") <> "" Then
ActiveSheet.Shapes("Cirkel 8").Fill.ForeColor.RGB = vbYellow
ActiveSheet.Shapes("Cirkel 9").Fill.ForeColor.RGB = vbYellow
Else
ActiveSheet.Shapes("Cirkel 8").Fill.ForeColor.RGB = RGB(166, 166, 166) 'grey
ActiveSheet.Shapes("Cirkel 9").Fill.ForeColor.RGB = RGB(166, 166, 166) 'grey
Here is part of the code (which only Works with numbers):
If Range("C23") Or Range("C60") Or Range("C82") Or Range("C104") <> "" Then
ActiveSheet.Shapes("Cirkel 8").Fill.ForeColor.RGB = vbGreen
ActiveSheet.Shapes("Cirkel 9").Fill.ForeColor.RGB = vbGreen
ElseIf Range("C11") Or Range("C48") Or Range("C70") Or Range("C92") <> "" Then
ActiveSheet.Shapes("Cirkel 8").Fill.ForeColor.RGB = vbYellow
ActiveSheet.Shapes("Cirkel 9").Fill.ForeColor.RGB = vbYellow
Else
ActiveSheet.Shapes("Cirkel 8").Fill.ForeColor.RGB = RGB(166, 166, 166) 'grey
ActiveSheet.Shapes("Cirkel 9").Fill.ForeColor.RGB = RGB(166, 166, 166) 'grey