View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jim Thomlinson Jim Thomlinson is offline
external usenet poster
 
Posts: 5,939
Default conditional visibility of check box

As opposed to conditional visibility I prefer to use conditional enabling.
The box is there but can not be used until the cell is filled in. I get too
many calls from people saying it is broken because the check box was not
there... Tyr this

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Me.Range("A1"), Target) Is Nothing Then
If Target.Value < "" Then
CheckBox1.Enabled = True
Else
CheckBox1.Enabled = False
End If
End If
End Sub

Paste this code into the sheet where the checkbox is.
--
HTH...

Jim Thomlinson


"Erol" wrote:

Hi All,

I want to use check box from control toolbar. I want this check box to be
visible if there is a certain value in another cell. Is this possible somehow?

Thanks in advance,