Here how my code appears at the present moment.
Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$2" Then
ActiveSheet.Shapes("Email_Button").Visible = Not Target.Value = ""
End If
End Sub
Also B2:B4 are linked to another sheet so even though cell value may be empty cell still will have a 0
B2 (well be used to enter clients name)
B3 (well have email address)
B4 (well be used for comments)
One problem I did notice was when using a Worksheet_Change it doesn’t function unless I tab out of selected cell
Updated:I even tried using a toogle method
Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
If Sheets("Sheet1").Range("B2,B3,B4").Value = "" Then
ActiveSheet.Shapes("Email_Button").Visible = False
Else
ActiveSheet.Shapes("Email_Button").Visible = True
End If
End Sub