Hi,
I have spent a lot of time trying to find an answer to this but so far have only found How to hide a command button based on a cell value.
I am trying to find out how to Hide a command Button based on a value within a range of cells. For example, changing the below example from ("B6") to ("B:B") does not work.
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Range("B6") = "" Then
CommandButton1.Visible = False
Else
CommandButton1.Visible = True
End If
End Sub
I wonder if anyone could assist me with this please.
Thanks in advance
I have spent a lot of time trying to find an answer to this but so far have only found How to hide a command button based on a cell value.
I am trying to find out how to Hide a command Button based on a value within a range of cells. For example, changing the below example from ("B6") to ("B:B") does not work.
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Range("B6") = "" Then
CommandButton1.Visible = False
Else
CommandButton1.Visible = True
End If
End Sub
I wonder if anyone could assist me with this please.
Thanks in advance