View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ron de Bruin Ron de Bruin is offline
external usenet poster
 
Posts: 11,123
Default Setting a CheckBox Value to False

Hi

You must use the value property of the checkbox

CheckBox1.Value = False

--
Regards Ron de Bruin
http://www.rondebruin.nl


"The Hawk" wrote in message ...
Hi: I'd like to set a checkbox value to false after selection of an item
from a Combo Box. I've tried various things, but cannot seem to get the
correct syntax. Both the Combo Box and Check Box are on a User Form. The
latest code tried is:

Private Sub cmbMembers_Change()
If Val(cmbMembers.Value) 0 Then
Cells(cmbMembers.Value, 1).Select
CheckBox1.Enabled = True: Value = False
Else
CheckBox1.Enabled = False
CheckBox2.Enabled = False
CheckBox3.Enabled = False
End If
End Sub

Any help will be appreciated...