Hi, please review code below. I would like the line with the * to subtract 1 from the value in Z2 when the command control is clicked.
With Sheets("Sheet3").Range("Z2")
With Sheets("Sheet1").Range("C7")
If .Interior.ColorIndex = 1 Then
.Interior.ColorIndex = 15
Else
.Interior.ColorIndex = 1
End If
End With
*** .Value = (Z2-1)
End With
Thanks
With Sheets("Sheet3").Range("Z2")
With Sheets("Sheet1").Range("C7")
If .Interior.ColorIndex = 1 Then
.Interior.ColorIndex = 15
Else
.Interior.ColorIndex = 1
End If
End With
*** .Value = (Z2-1)
End With
Thanks