Portucale
Member
Hi,
I have a shape (Layer) which I need to be visible when a specific cell (B26) string is “DTV” otherwise the shape is invisible.
I tried the code below, but it doesn't seem to work, any ideas?
Any help and All the help is very much appreciated.
I have a shape (Layer) which I need to be visible when a specific cell (B26) string is “DTV” otherwise the shape is invisible.
I tried the code below, but it doesn't seem to work, any ideas?
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Worksheets("Pre").Range("B26") = "DTV" Then
ActiveSheet.Shapes("Layer").Visible = False
Else
ActiveSheet.Shapes("Layer").Visible = True
End If
End Sub
Any help and All the help is very much appreciated.