Hi,
I am getting the below error:
With:
It's saying it has something do with this:
But I can't figure it out.
I have tested the cell with:
=IF($K$65="","EMPTY",IF($K$65>0,"YES",""))
And it shows EMPTY when there's nothing there and "YES" if the number is above 0 so it seems to work there but not in VBA.
Thank you in advance!
I am getting the below error:
With:
VBA Code:
Private Sub Worksheet_Change(ByVal Targer As Range)
If Target.Address = "$K$65" Then
If Target.Value = "" Then
Shapes.Range(Array("Step2")).Line.Visible = msoTrue
Shapes.Range(Array("Step2.5")).Line.Visible = msoFalse
Shapes.Range(Array("Step3")).Line.Visible = msoFalse
Else
If Target.Value > 0 Then
Shapes.Range(Array("Step2")).Line.Visible = msoFalse
Shapes.Range(Array("Step2.5")).Line.Visible = msoTrue
Shapes.Range(Array("Step3")).Line.Visible = msoTrue
End If
End If
End If
End Sub
It's saying it has something do with this:
But I can't figure it out.
I have tested the cell with:
=IF($K$65="","EMPTY",IF($K$65>0,"YES",""))
And it shows EMPTY when there's nothing there and "YES" if the number is above 0 so it seems to work there but not in VBA.
Thank you in advance!