PC Review


Reply
Thread Tools Rate Thread

CheckBox to tick other CheckBoxes

 
 
Michelle
Guest
Posts: n/a
 
      27th Oct 2009
Hello, I have a userform with checkboxes for each of four years (Y0, Y1, Y2
& Y3)
I want to be able to tick them all by ticking the 'tick-all' checkbox

Similarly, if I deselect any of them the 'tick-all' box should be
automatically unchecked
and if I tick them all manually, the 'tick-all' box should be automatically
checked

I have seen this setup before - so I know it's possible.

My problem is that the event procedures are all triggering each other and so
it's a bit of a mess.

I've tried EnableEvents = false, but it doesn't do what I want

A sample of my code is below, but does anyone know a way to make it work?
please?

'===========================
Private Sub chkHeadAll_Change()
Application.EnableEvents = False
chkHeadY0.Value = chkHeadAll.Value
chkHeadY1.Value = chkHeadAll.Value
chkHeadY2.Value = chkHeadAll.Value
chkHeadY3.Value = chkHeadAll.Value
Application.EnableEvents = True
End Sub

Private Sub chkHeadY0_Change()
Application.EnableEvents = False
If chkHeadY0.Value And chkHeadY1.Value And chkHeadY2.Value And
chkHeadY3.Value Then chkHeadAll.Value = True
If Not chkHeadY0.Value Or Not chkHeadY1.Value Or Not chkHeadY2.Value Or
Not chkHeadY3.Value Then chkHeadAll.Value = False
Application.EnableEvents = True
End Sub

Private Sub chkHeadY1_Change()
Application.EnableEvents = False
If chkHeadY0.Value And chkHeadY1.Value And chkHeadY2.Value And
chkHeadY3.Value Then chkHeadAll.Value = True
If Not chkHeadY0.Value Or Not chkHeadY1.Value Or Not chkHeadY2.Value Or
Not chkHeadY3.Value Then chkHeadAll.Value = False
Application.EnableEvents = True
End Sub
'===========================

Thanks


M

 
Reply With Quote
 
 
 
 
Per Jessen
Guest
Posts: n/a
 
      27th Oct 2009
Hi

Two things:

In chkHeadAll_Change(), test if chkHeadAll is true, and if it is set all
years true, else do nothing.

In each year change sub, you should only check on the current checkbox:

If Not chkHeadY0.Value Then chkHeadAll.Value = False


See my example below:

Private Sub CheckBox1_change()
If Me.CheckBox1 = True Then
Me.CheckBox2.Value = True
Me.CheckBox3.Value = True
Me.CheckBox4.Value = True
End If
End Sub

Private Sub CheckBox2_change()
If Me.CheckBox2 And Me.CheckBox3 And Me.CheckBox4 Then Me.CheckBox1 = True
If Not Me.CheckBox2 Then Me.CheckBox1 = False
End Sub

Private Sub CheckBox3_change()
If Me.CheckBox2 And Me.CheckBox3 And Me.CheckBox4 Then Me.CheckBox1 = True
If Not Me.CheckBox3 Then Me.CheckBox1 = False
End Sub

Private Sub CheckBox4_change()
If Me.CheckBox2 And Me.CheckBox3 And Me.CheckBox4 Then Me.CheckBox1 = True
If Not Me.CheckBox4 Then Me.CheckBox1 = False
End Sub

Hopes this helps.
...
Per

"Michelle" <(E-Mail Removed)> skrev i meddelelsen
news:B7CB2858-6C92-423B-90DA-(E-Mail Removed)...
> Hello, I have a userform with checkboxes for each of four years (Y0, Y1,
> Y2 & Y3)
> I want to be able to tick them all by ticking the 'tick-all' checkbox
>
> Similarly, if I deselect any of them the 'tick-all' box should be
> automatically unchecked
> and if I tick them all manually, the 'tick-all' box should be
> automatically checked
>
> I have seen this setup before - so I know it's possible.
>
> My problem is that the event procedures are all triggering each other and
> so it's a bit of a mess.
>
> I've tried EnableEvents = false, but it doesn't do what I want
>
> A sample of my code is below, but does anyone know a way to make it work?
> please?
>
> '===========================
> Private Sub chkHeadAll_Change()
> Application.EnableEvents = False
> chkHeadY0.Value = chkHeadAll.Value
> chkHeadY1.Value = chkHeadAll.Value
> chkHeadY2.Value = chkHeadAll.Value
> chkHeadY3.Value = chkHeadAll.Value
> Application.EnableEvents = True
> End Sub
>
> Private Sub chkHeadY0_Change()
> Application.EnableEvents = False
> If chkHeadY0.Value And chkHeadY1.Value And chkHeadY2.Value And
> chkHeadY3.Value Then chkHeadAll.Value = True
> If Not chkHeadY0.Value Or Not chkHeadY1.Value Or Not chkHeadY2.Value Or
> Not chkHeadY3.Value Then chkHeadAll.Value = False
> Application.EnableEvents = True
> End Sub
>
> Private Sub chkHeadY1_Change()
> Application.EnableEvents = False
> If chkHeadY0.Value And chkHeadY1.Value And chkHeadY2.Value And
> chkHeadY3.Value Then chkHeadAll.Value = True
> If Not chkHeadY0.Value Or Not chkHeadY1.Value Or Not chkHeadY2.Value Or
> Not chkHeadY3.Value Then chkHeadAll.Value = False
> Application.EnableEvents = True
> End Sub
> '===========================
>
> Thanks
>
>
> M


 
Reply With Quote
 
Michelle
Guest
Posts: n/a
 
      27th Oct 2009
When I run the check box1 change event (starting with all the boxes
unticked), it checks the first one then doesn't change the others, I don't
get why it doesn't work

M

"Per Jessen" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi
>
> Two things:
>
> In chkHeadAll_Change(), test if chkHeadAll is true, and if it is set all
> years true, else do nothing.
>
> In each year change sub, you should only check on the current checkbox:
>
> If Not chkHeadY0.Value Then chkHeadAll.Value = False
>
>
> See my example below:
>
> Private Sub CheckBox1_change()
> If Me.CheckBox1 = True Then
> Me.CheckBox2.Value = True
> Me.CheckBox3.Value = True
> Me.CheckBox4.Value = True
> End If
> End Sub
>
> Private Sub CheckBox2_change()
> If Me.CheckBox2 And Me.CheckBox3 And Me.CheckBox4 Then Me.CheckBox1 = True
> If Not Me.CheckBox2 Then Me.CheckBox1 = False
> End Sub
>
> Private Sub CheckBox3_change()
> If Me.CheckBox2 And Me.CheckBox3 And Me.CheckBox4 Then Me.CheckBox1 = True
> If Not Me.CheckBox3 Then Me.CheckBox1 = False
> End Sub
>
> Private Sub CheckBox4_change()
> If Me.CheckBox2 And Me.CheckBox3 And Me.CheckBox4 Then Me.CheckBox1 = True
> If Not Me.CheckBox4 Then Me.CheckBox1 = False
> End Sub
>
> Hopes this helps.
> ..
> Per
>
> "Michelle" <(E-Mail Removed)> skrev i meddelelsen
> news:B7CB2858-6C92-423B-90DA-(E-Mail Removed)...
>> Hello, I have a userform with checkboxes for each of four years (Y0, Y1,
>> Y2 & Y3)
>> I want to be able to tick them all by ticking the 'tick-all' checkbox
>>
>> Similarly, if I deselect any of them the 'tick-all' box should be
>> automatically unchecked
>> and if I tick them all manually, the 'tick-all' box should be
>> automatically checked
>>
>> I have seen this setup before - so I know it's possible.
>>
>> My problem is that the event procedures are all triggering each other and
>> so it's a bit of a mess.
>>
>> I've tried EnableEvents = false, but it doesn't do what I want
>>
>> A sample of my code is below, but does anyone know a way to make it work?
>> please?
>>
>> '===========================
>> Private Sub chkHeadAll_Change()
>> Application.EnableEvents = False
>> chkHeadY0.Value = chkHeadAll.Value
>> chkHeadY1.Value = chkHeadAll.Value
>> chkHeadY2.Value = chkHeadAll.Value
>> chkHeadY3.Value = chkHeadAll.Value
>> Application.EnableEvents = True
>> End Sub
>>
>> Private Sub chkHeadY0_Change()
>> Application.EnableEvents = False
>> If chkHeadY0.Value And chkHeadY1.Value And chkHeadY2.Value And
>> chkHeadY3.Value Then chkHeadAll.Value = True
>> If Not chkHeadY0.Value Or Not chkHeadY1.Value Or Not chkHeadY2.Value
>> Or Not chkHeadY3.Value Then chkHeadAll.Value = False
>> Application.EnableEvents = True
>> End Sub
>>
>> Private Sub chkHeadY1_Change()
>> Application.EnableEvents = False
>> If chkHeadY0.Value And chkHeadY1.Value And chkHeadY2.Value And
>> chkHeadY3.Value Then chkHeadAll.Value = True
>> If Not chkHeadY0.Value Or Not chkHeadY1.Value Or Not chkHeadY2.Value
>> Or Not chkHeadY3.Value Then chkHeadAll.Value = False
>> Application.EnableEvents = True
>> End Sub
>> '===========================
>>
>> Thanks
>>
>>
>> M

>


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      27th Oct 2009
..enableevents won't work (as you've seen). You have to keep track yourself.

Since you named the 4 checkboxes nicely (chkHeadY#), this worked ok for me:

Option Explicit
Dim BlkProc As Boolean
Const MaxCheckBoxes As Long = 4
Private Sub CommandButton1_Click()
Unload Me
End Sub
Private Sub chkHeadAll_Change()

If BlkProc = True Then
Exit Sub
End If

BlkProc = True
chkHeadY0.Value = chkHeadAll.Value
chkHeadY1.Value = chkHeadAll.Value
chkHeadY2.Value = chkHeadAll.Value
chkHeadY3.Value = chkHeadAll.Value
BlkProc = False
End Sub
Private Sub chkHeadY0_Change()

Dim HowManyChecked As Long

If BlkProc = True Then
Exit Sub
End If

HowManyChecked = CountIndividualYears

BlkProc = True
If HowManyChecked = MaxCheckBoxes Then
Me.chkHeadAll = True
Else
Me.chkHeadAll = False
End If
BlkProc = False

End Sub
Private Sub chkHeadY1_Change()

Dim HowManyChecked As Long

If BlkProc = True Then
Exit Sub
End If

HowManyChecked = CountIndividualYears

BlkProc = True
If HowManyChecked = MaxCheckBoxes Then
Me.chkHeadAll = True
Else
Me.chkHeadAll = False
End If
BlkProc = False

End Sub
Private Sub chkHeadY2_Change()

Dim HowManyChecked As Long

If BlkProc = True Then
Exit Sub
End If

HowManyChecked = CountIndividualYears

BlkProc = True
If HowManyChecked = MaxCheckBoxes Then
Me.chkHeadAll = True
Else
Me.chkHeadAll = False
End If
BlkProc = False

End Sub
Private Sub chkHeadY3_Change()

Dim HowManyChecked As Long

If BlkProc = True Then
Exit Sub
End If

HowManyChecked = CountIndividualYears

BlkProc = True
If HowManyChecked = MaxCheckBoxes Then
Me.chkHeadAll = True
Else
Me.chkHeadAll = False
End If
BlkProc = False

End Sub
Function CountIndividualYears() As Long

Dim iCtr As Long
Dim myCount As Long

myCount = 0
For iCtr = 0 To MaxCheckBoxes - 1
If Me.Controls("chkHeadY" & iCtr).Value = True Then
myCount = myCount + 1
End If
Next iCtr

CountIndividualYears = myCount

End Function



Michelle wrote:
>
> Hello, I have a userform with checkboxes for each of four years (Y0, Y1, Y2
> & Y3)
> I want to be able to tick them all by ticking the 'tick-all' checkbox
>
> Similarly, if I deselect any of them the 'tick-all' box should be
> automatically unchecked
> and if I tick them all manually, the 'tick-all' box should be automatically
> checked
>
> I have seen this setup before - so I know it's possible.
>
> My problem is that the event procedures are all triggering each other and so
> it's a bit of a mess.
>
> I've tried EnableEvents = false, but it doesn't do what I want
>
> A sample of my code is below, but does anyone know a way to make it work?
> please?
>
> '===========================
> Private Sub chkHeadAll_Change()
> Application.EnableEvents = False
> chkHeadY0.Value = chkHeadAll.Value
> chkHeadY1.Value = chkHeadAll.Value
> chkHeadY2.Value = chkHeadAll.Value
> chkHeadY3.Value = chkHeadAll.Value
> Application.EnableEvents = True
> End Sub
>
> Private Sub chkHeadY0_Change()
> Application.EnableEvents = False
> If chkHeadY0.Value And chkHeadY1.Value And chkHeadY2.Value And
> chkHeadY3.Value Then chkHeadAll.Value = True
> If Not chkHeadY0.Value Or Not chkHeadY1.Value Or Not chkHeadY2.Value Or
> Not chkHeadY3.Value Then chkHeadAll.Value = False
> Application.EnableEvents = True
> End Sub
>
> Private Sub chkHeadY1_Change()
> Application.EnableEvents = False
> If chkHeadY0.Value And chkHeadY1.Value And chkHeadY2.Value And
> chkHeadY3.Value Then chkHeadAll.Value = True
> If Not chkHeadY0.Value Or Not chkHeadY1.Value Or Not chkHeadY2.Value Or
> Not chkHeadY3.Value Then chkHeadAll.Value = False
> Application.EnableEvents = True
> End Sub
> '===========================
>
> Thanks
>
> M


--

Dave Peterson
 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      27th Oct 2009
If you decide to change the number of years, you may want to use this:

Private Sub chkHeadAll_Change()

Dim iCtr as long

If BlkProc = True Then
Exit Sub
End If

BlkProc = True
For iCtr = 0 To MaxCheckBoxes - 1
Me.Controls("chkHeadY" & iCtr).Value = chkHeadAll.Value
Next iCtr
BlkProc = false

End Sub

(I didn't notice it before.)



Dave Peterson wrote:
>
> .enableevents won't work (as you've seen). You have to keep track yourself.
>
> Since you named the 4 checkboxes nicely (chkHeadY#), this worked ok for me:
>
> Option Explicit
> Dim BlkProc As Boolean
> Const MaxCheckBoxes As Long = 4
> Private Sub CommandButton1_Click()
> Unload Me
> End Sub
> Private Sub chkHeadAll_Change()
>
> If BlkProc = True Then
> Exit Sub
> End If
>
> BlkProc = True
> chkHeadY0.Value = chkHeadAll.Value
> chkHeadY1.Value = chkHeadAll.Value
> chkHeadY2.Value = chkHeadAll.Value
> chkHeadY3.Value = chkHeadAll.Value
> BlkProc = False
> End Sub
> Private Sub chkHeadY0_Change()
>
> Dim HowManyChecked As Long
>
> If BlkProc = True Then
> Exit Sub
> End If
>
> HowManyChecked = CountIndividualYears
>
> BlkProc = True
> If HowManyChecked = MaxCheckBoxes Then
> Me.chkHeadAll = True
> Else
> Me.chkHeadAll = False
> End If
> BlkProc = False
>
> End Sub
> Private Sub chkHeadY1_Change()
>
> Dim HowManyChecked As Long
>
> If BlkProc = True Then
> Exit Sub
> End If
>
> HowManyChecked = CountIndividualYears
>
> BlkProc = True
> If HowManyChecked = MaxCheckBoxes Then
> Me.chkHeadAll = True
> Else
> Me.chkHeadAll = False
> End If
> BlkProc = False
>
> End Sub
> Private Sub chkHeadY2_Change()
>
> Dim HowManyChecked As Long
>
> If BlkProc = True Then
> Exit Sub
> End If
>
> HowManyChecked = CountIndividualYears
>
> BlkProc = True
> If HowManyChecked = MaxCheckBoxes Then
> Me.chkHeadAll = True
> Else
> Me.chkHeadAll = False
> End If
> BlkProc = False
>
> End Sub
> Private Sub chkHeadY3_Change()
>
> Dim HowManyChecked As Long
>
> If BlkProc = True Then
> Exit Sub
> End If
>
> HowManyChecked = CountIndividualYears
>
> BlkProc = True
> If HowManyChecked = MaxCheckBoxes Then
> Me.chkHeadAll = True
> Else
> Me.chkHeadAll = False
> End If
> BlkProc = False
>
> End Sub
> Function CountIndividualYears() As Long
>
> Dim iCtr As Long
> Dim myCount As Long
>
> myCount = 0
> For iCtr = 0 To MaxCheckBoxes - 1
> If Me.Controls("chkHeadY" & iCtr).Value = True Then
> myCount = myCount + 1
> End If
> Next iCtr
>
> CountIndividualYears = myCount
>
> End Function
>
> Michelle wrote:
> >
> > Hello, I have a userform with checkboxes for each of four years (Y0, Y1, Y2
> > & Y3)
> > I want to be able to tick them all by ticking the 'tick-all' checkbox
> >
> > Similarly, if I deselect any of them the 'tick-all' box should be
> > automatically unchecked
> > and if I tick them all manually, the 'tick-all' box should be automatically
> > checked
> >
> > I have seen this setup before - so I know it's possible.
> >
> > My problem is that the event procedures are all triggering each other and so
> > it's a bit of a mess.
> >
> > I've tried EnableEvents = false, but it doesn't do what I want
> >
> > A sample of my code is below, but does anyone know a way to make it work?
> > please?
> >
> > '===========================
> > Private Sub chkHeadAll_Change()
> > Application.EnableEvents = False
> > chkHeadY0.Value = chkHeadAll.Value
> > chkHeadY1.Value = chkHeadAll.Value
> > chkHeadY2.Value = chkHeadAll.Value
> > chkHeadY3.Value = chkHeadAll.Value
> > Application.EnableEvents = True
> > End Sub
> >
> > Private Sub chkHeadY0_Change()
> > Application.EnableEvents = False
> > If chkHeadY0.Value And chkHeadY1.Value And chkHeadY2.Value And
> > chkHeadY3.Value Then chkHeadAll.Value = True
> > If Not chkHeadY0.Value Or Not chkHeadY1.Value Or Not chkHeadY2.Value Or
> > Not chkHeadY3.Value Then chkHeadAll.Value = False
> > Application.EnableEvents = True
> > End Sub
> >
> > Private Sub chkHeadY1_Change()
> > Application.EnableEvents = False
> > If chkHeadY0.Value And chkHeadY1.Value And chkHeadY2.Value And
> > chkHeadY3.Value Then chkHeadAll.Value = True
> > If Not chkHeadY0.Value Or Not chkHeadY1.Value Or Not chkHeadY2.Value Or
> > Not chkHeadY3.Value Then chkHeadAll.Value = False
> > Application.EnableEvents = True
> > End Sub
> > '===========================
> >
> > Thanks
> >
> > M

>
> --
>
> Dave Peterson


--

Dave Peterson
 
Reply With Quote
 
Michelle
Guest
Posts: n/a
 
      27th Oct 2009
Thanks - you're a star.

M

"Dave Peterson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If you decide to change the number of years, you may want to use this:
>
> Private Sub chkHeadAll_Change()
>
> Dim iCtr as long
>
> If BlkProc = True Then
> Exit Sub
> End If
>
> BlkProc = True
> For iCtr = 0 To MaxCheckBoxes - 1
> Me.Controls("chkHeadY" & iCtr).Value = chkHeadAll.Value
> Next iCtr
> BlkProc = false
>
> End Sub
>
> (I didn't notice it before.)
>
>
>
> Dave Peterson wrote:
>>
>> .enableevents won't work (as you've seen). You have to keep track
>> yourself.
>>
>> Since you named the 4 checkboxes nicely (chkHeadY#), this worked ok for
>> me:
>>
>> Option Explicit
>> Dim BlkProc As Boolean
>> Const MaxCheckBoxes As Long = 4
>> Private Sub CommandButton1_Click()
>> Unload Me
>> End Sub
>> Private Sub chkHeadAll_Change()
>>
>> If BlkProc = True Then
>> Exit Sub
>> End If
>>
>> BlkProc = True
>> chkHeadY0.Value = chkHeadAll.Value
>> chkHeadY1.Value = chkHeadAll.Value
>> chkHeadY2.Value = chkHeadAll.Value
>> chkHeadY3.Value = chkHeadAll.Value
>> BlkProc = False
>> End Sub
>> Private Sub chkHeadY0_Change()
>>
>> Dim HowManyChecked As Long
>>
>> If BlkProc = True Then
>> Exit Sub
>> End If
>>
>> HowManyChecked = CountIndividualYears
>>
>> BlkProc = True
>> If HowManyChecked = MaxCheckBoxes Then
>> Me.chkHeadAll = True
>> Else
>> Me.chkHeadAll = False
>> End If
>> BlkProc = False
>>
>> End Sub
>> Private Sub chkHeadY1_Change()
>>
>> Dim HowManyChecked As Long
>>
>> If BlkProc = True Then
>> Exit Sub
>> End If
>>
>> HowManyChecked = CountIndividualYears
>>
>> BlkProc = True
>> If HowManyChecked = MaxCheckBoxes Then
>> Me.chkHeadAll = True
>> Else
>> Me.chkHeadAll = False
>> End If
>> BlkProc = False
>>
>> End Sub
>> Private Sub chkHeadY2_Change()
>>
>> Dim HowManyChecked As Long
>>
>> If BlkProc = True Then
>> Exit Sub
>> End If
>>
>> HowManyChecked = CountIndividualYears
>>
>> BlkProc = True
>> If HowManyChecked = MaxCheckBoxes Then
>> Me.chkHeadAll = True
>> Else
>> Me.chkHeadAll = False
>> End If
>> BlkProc = False
>>
>> End Sub
>> Private Sub chkHeadY3_Change()
>>
>> Dim HowManyChecked As Long
>>
>> If BlkProc = True Then
>> Exit Sub
>> End If
>>
>> HowManyChecked = CountIndividualYears
>>
>> BlkProc = True
>> If HowManyChecked = MaxCheckBoxes Then
>> Me.chkHeadAll = True
>> Else
>> Me.chkHeadAll = False
>> End If
>> BlkProc = False
>>
>> End Sub
>> Function CountIndividualYears() As Long
>>
>> Dim iCtr As Long
>> Dim myCount As Long
>>
>> myCount = 0
>> For iCtr = 0 To MaxCheckBoxes - 1
>> If Me.Controls("chkHeadY" & iCtr).Value = True Then
>> myCount = myCount + 1
>> End If
>> Next iCtr
>>
>> CountIndividualYears = myCount
>>
>> End Function
>>
>> Michelle wrote:
>> >
>> > Hello, I have a userform with checkboxes for each of four years (Y0,
>> > Y1, Y2
>> > & Y3)
>> > I want to be able to tick them all by ticking the 'tick-all' checkbox
>> >
>> > Similarly, if I deselect any of them the 'tick-all' box should be
>> > automatically unchecked
>> > and if I tick them all manually, the 'tick-all' box should be
>> > automatically
>> > checked
>> >
>> > I have seen this setup before - so I know it's possible.
>> >
>> > My problem is that the event procedures are all triggering each other
>> > and so
>> > it's a bit of a mess.
>> >
>> > I've tried EnableEvents = false, but it doesn't do what I want
>> >
>> > A sample of my code is below, but does anyone know a way to make it
>> > work?
>> > please?
>> >
>> > '===========================
>> > Private Sub chkHeadAll_Change()
>> > Application.EnableEvents = False
>> > chkHeadY0.Value = chkHeadAll.Value
>> > chkHeadY1.Value = chkHeadAll.Value
>> > chkHeadY2.Value = chkHeadAll.Value
>> > chkHeadY3.Value = chkHeadAll.Value
>> > Application.EnableEvents = True
>> > End Sub
>> >
>> > Private Sub chkHeadY0_Change()
>> > Application.EnableEvents = False
>> > If chkHeadY0.Value And chkHeadY1.Value And chkHeadY2.Value And
>> > chkHeadY3.Value Then chkHeadAll.Value = True
>> > If Not chkHeadY0.Value Or Not chkHeadY1.Value Or Not
>> > chkHeadY2.Value Or
>> > Not chkHeadY3.Value Then chkHeadAll.Value = False
>> > Application.EnableEvents = True
>> > End Sub
>> >
>> > Private Sub chkHeadY1_Change()
>> > Application.EnableEvents = False
>> > If chkHeadY0.Value And chkHeadY1.Value And chkHeadY2.Value And
>> > chkHeadY3.Value Then chkHeadAll.Value = True
>> > If Not chkHeadY0.Value Or Not chkHeadY1.Value Or Not
>> > chkHeadY2.Value Or
>> > Not chkHeadY3.Value Then chkHeadAll.Value = False
>> > Application.EnableEvents = True
>> > End Sub
>> > '===========================
>> >
>> > Thanks
>> >
>> > M

>>
>> --
>>
>> Dave Peterson

>
> --
>
> Dave Peterson


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternative to a tick in a checkbox =?Utf-8?B?TWlrZQ==?= Microsoft Excel Misc 1 26th Apr 2007 09:38 AM
Tick Checkbox Box666 Microsoft Access Getting Started 0 23rd Jan 2007 04:00 PM
Tick a checkbox S Shulman Microsoft VB .NET 1 16th Jan 2006 09:37 PM
I would like to have a cross in my checkbox rather than a tick =?Utf-8?B?RGVu?= Microsoft Excel Programming 5 21st Dec 2005 06:50 AM
Master-Detail Datagrid -checkbox (once tick the checkbox, all the child checkbox is ticked) Agnes Microsoft VB .NET 0 16th Aug 2004 11:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:10 PM.