Code:
Sub Update_Icons()
With Sheets("sheet1")
If Range("A1").Value > 50 Then
.ImageA10.Picture = .IconPlus.Picture
Else
.ImageA10.Picture = .IconMin.Picture
End If
End With
End Sub
IconPlus is a picturebox on the sheet (visible=False)
IconMin is a picturebox on the sheet (visible=False)
test:
- enter a value in A1 (<50 or >50).
- run the macro => the icon will change according to the value (- = <50, + = >50)
Leave a comment: