Hello all,
I have an issue with a shape. The shape color depends on a row where some columns are hide or not hide. Thanks to @DanteAmor i can count the hide or not hide cells from that row, but the shape doesn`t want to cooperate. If i hide some columns from that row the shape doesn`t change it`s color (the behinde formula and result is it ok) only if i double click on any cell and hit the enter. I don`t know how to do this "refresh" in VBA. Can you give me an advise ?
Thank you for your help !
I have an issue with a shape. The shape color depends on a row where some columns are hide or not hide. Thanks to @DanteAmor i can count the hide or not hide cells from that row, but the shape doesn`t want to cooperate. If i hide some columns from that row the shape doesn`t change it`s color (the behinde formula and result is it ok) only if i double click on any cell and hit the enter. I don`t know how to do this "refresh" in VBA. Can you give me an advise ?
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
'The Range ("V2") it`s count the number of hide cells and gave me a "READY" or "NOT READY".
If Worksheets("VIDEO 2 FIRE").Range("V2").Value = "READY" Then
ThisWorkbook.Sheets("STRUCT 2 FIRE").Shapes("Square1").Fill.ForeColor.RGB = RGB(154, 192, 74)
ThisWorkbook.Sheets("STRUCT 2 FIRE").Shapes("Square1").Fill.BackColor.RGB = RGB(154, 192, 74)
Else
ThisWorkbook.Sheets("STRUCT 2 FIRE").Shapes("Square1").Fill.ForeColor.RGB = RGB(204, 64, 61)
ThisWorkbook.Sheets("STRUCT 2 FIRE").Shapes("Square1").Fill.BackColor.RGB = RGB(204, 64, 61)
End If
End Sub
Thank you for your help !