Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
With ActiveSheet.Shapes("MyShape").Fill.ForeColor
Select Case [A1].Value
Case 1
.SchemeColor = 40
Case 2
.SchemeColor = 12
Case 3
.SchemeColor = 10
Case Else
.SchemeColor = 9
End Select
End With
Application.EnableEvents = True
End Sub
[code]
Enter the code by right clicking on the Sheet Tab, selectiong View Code and then enter or paste the code. You can adapt range and values to your needs.
You can name an AutoShape by yselecting it, and in the Name Box (just above the A1 Cell) enter the name you wish to apply.
A.C.