PC Review


Reply
Thread Tools Rate Thread

Checkboxes with the same Group Name not Responding

 
 
RyanH
Guest
Posts: n/a
 
      8th May 2008
I have 4 Checkboxes in a UserForm. I have given all 4 Checkboxes the
GroupName = "Shipping" in the Properties Window in the VBA Editor. We I Show
the UserForm and click on one Checkbox the others do not turn off, why?

Thanks in Advance,
Ryan
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      8th May 2008
That's the way checkboxes work.

Maybe you meant to use OptionButtons -- they'll only allow one option to be
chosen in each group.



RyanH wrote:
>
> I have 4 Checkboxes in a UserForm. I have given all 4 Checkboxes the
> GroupName = "Shipping" in the Properties Window in the VBA Editor. We I Show
> the UserForm and click on one Checkbox the others do not turn off, why?
>
> Thanks in Advance,
> Ryan


--

Dave Peterson
 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      8th May 2008
You can make a check box look like an option button by deselecting the other
boxes when one comes true


Private Sub CheckBox2_Click()
if checkbox2 = true then
checkbox1 = false
checkbox 3 = false
end if
End Sub



"Dave Peterson" wrote:

> That's the way checkboxes work.
>
> Maybe you meant to use OptionButtons -- they'll only allow one option to be
> chosen in each group.
>
>
>
> RyanH wrote:
> >
> > I have 4 Checkboxes in a UserForm. I have given all 4 Checkboxes the
> > GroupName = "Shipping" in the Properties Window in the VBA Editor. We I Show
> > the UserForm and click on one Checkbox the others do not turn off, why?
> >
> > Thanks in Advance,
> > Ryan

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
RyanH
Guest
Posts: n/a
 
      8th May 2008
I could use option buttons, but I would prefer the look of the checkboxes.
The help section says the GroupName Property supports option buttons, but why
does the GroupName property show up in the Properties window of the VBE? Am
I wrong about the possiblity of the checkboxes acting like option buttons?

Ryan


"Joel" wrote:

> You can make a check box look like an option button by deselecting the other
> boxes when one comes true
>
>
> Private Sub CheckBox2_Click()
> if checkbox2 = true then
> checkbox1 = false
> checkbox 3 = false
> end if
> End Sub
>
>
>
> "Dave Peterson" wrote:
>
> > That's the way checkboxes work.
> >
> > Maybe you meant to use OptionButtons -- they'll only allow one option to be
> > chosen in each group.
> >
> >
> >
> > RyanH wrote:
> > >
> > > I have 4 Checkboxes in a UserForm. I have given all 4 Checkboxes the
> > > GroupName = "Shipping" in the Properties Window in the VBA Editor. We I Show
> > > the UserForm and click on one Checkbox the others do not turn off, why?
> > >
> > > Thanks in Advance,
> > > Ryan

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

 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      8th May 2008
Groupname doesn't make check boxes mutually exclusive. It just creates a
common group if any of the boxes are selected.

"RyanH" wrote:

> I could use option buttons, but I would prefer the look of the checkboxes.
> The help section says the GroupName Property supports option buttons, but why
> does the GroupName property show up in the Properties window of the VBE? Am
> I wrong about the possiblity of the checkboxes acting like option buttons?
>
> Ryan
>
>
> "Joel" wrote:
>
> > You can make a check box look like an option button by deselecting the other
> > boxes when one comes true
> >
> >
> > Private Sub CheckBox2_Click()
> > if checkbox2 = true then
> > checkbox1 = false
> > checkbox 3 = false
> > end if
> > End Sub
> >
> >
> >
> > "Dave Peterson" wrote:
> >
> > > That's the way checkboxes work.
> > >
> > > Maybe you meant to use OptionButtons -- they'll only allow one option to be
> > > chosen in each group.
> > >
> > >
> > >
> > > RyanH wrote:
> > > >
> > > > I have 4 Checkboxes in a UserForm. I have given all 4 Checkboxes the
> > > > GroupName = "Shipping" in the Properties Window in the VBA Editor. We I Show
> > > > the UserForm and click on one Checkbox the others do not turn off, why?
> > > >
> > > > Thanks in Advance,
> > > > Ryan
> > >
> > > --
> > >
> > > Dave Peterson
> > >

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      8th May 2008
Just to add to what Joel wrote...

It's not always what the developer thinks looks nice. As a user, I would expect
checkboxes to be independent of each other -- and grouped optionbuttons to be
mutually exclusive.

If the developer doesn't follow those rules, it can be more confusing to the
user.

RyanH wrote:
>
> I could use option buttons, but I would prefer the look of the checkboxes.
> The help section says the GroupName Property supports option buttons, but why
> does the GroupName property show up in the Properties window of the VBE? Am
> I wrong about the possiblity of the checkboxes acting like option buttons?
>
> Ryan
>
> "Joel" wrote:
>
> > You can make a check box look like an option button by deselecting the other
> > boxes when one comes true
> >
> >
> > Private Sub CheckBox2_Click()
> > if checkbox2 = true then
> > checkbox1 = false
> > checkbox 3 = false
> > end if
> > End Sub
> >
> >
> >
> > "Dave Peterson" wrote:
> >
> > > That's the way checkboxes work.
> > >
> > > Maybe you meant to use OptionButtons -- they'll only allow one option to be
> > > chosen in each group.
> > >
> > >
> > >
> > > RyanH wrote:
> > > >
> > > > I have 4 Checkboxes in a UserForm. I have given all 4 Checkboxes the
> > > > GroupName = "Shipping" in the Properties Window in the VBA Editor. We I Show
> > > > the UserForm and click on one Checkbox the others do not turn off, why?
> > > >
> > > > Thanks in Advance,
> > > > Ryan
> > >
> > > --
> > >
> > > Dave Peterson
> > >


--

Dave Peterson
 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      8th May 2008
Adding instruction on the userfrom to "Select One" will eliminate the
confussion

"Dave Peterson" wrote:

> Just to add to what Joel wrote...
>
> It's not always what the developer thinks looks nice. As a user, I would expect
> checkboxes to be independent of each other -- and grouped optionbuttons to be
> mutually exclusive.
>
> If the developer doesn't follow those rules, it can be more confusing to the
> user.
>
> RyanH wrote:
> >
> > I could use option buttons, but I would prefer the look of the checkboxes.
> > The help section says the GroupName Property supports option buttons, but why
> > does the GroupName property show up in the Properties window of the VBE? Am
> > I wrong about the possiblity of the checkboxes acting like option buttons?
> >
> > Ryan
> >
> > "Joel" wrote:
> >
> > > You can make a check box look like an option button by deselecting the other
> > > boxes when one comes true
> > >
> > >
> > > Private Sub CheckBox2_Click()
> > > if checkbox2 = true then
> > > checkbox1 = false
> > > checkbox 3 = false
> > > end if
> > > End Sub
> > >
> > >
> > >
> > > "Dave Peterson" wrote:
> > >
> > > > That's the way checkboxes work.
> > > >
> > > > Maybe you meant to use OptionButtons -- they'll only allow one option to be
> > > > chosen in each group.
> > > >
> > > >
> > > >
> > > > RyanH wrote:
> > > > >
> > > > > I have 4 Checkboxes in a UserForm. I have given all 4 Checkboxes the
> > > > > GroupName = "Shipping" in the Properties Window in the VBA Editor. We I Show
> > > > > the UserForm and click on one Checkbox the others do not turn off, why?
> > > > >
> > > > > Thanks in Advance,
> > > > > Ryan
> > > >
> > > > --
> > > >
> > > > Dave Peterson
> > > >

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      8th May 2008
I wouldn't want to clutter my userforms with stuff like that.

I wouldn't want to use Tools|Options and see instructions on each tab explaining
how checkboxes should be used.

I wouldn't expect most users to read these kinds of instructions, either.

Joel wrote:
>
> Adding instruction on the userfrom to "Select One" will eliminate the
> confussion
>
> "Dave Peterson" wrote:
>
> > Just to add to what Joel wrote...
> >
> > It's not always what the developer thinks looks nice. As a user, I would expect
> > checkboxes to be independent of each other -- and grouped optionbuttons to be
> > mutually exclusive.
> >
> > If the developer doesn't follow those rules, it can be more confusing to the
> > user.
> >
> > RyanH wrote:
> > >
> > > I could use option buttons, but I would prefer the look of the checkboxes.
> > > The help section says the GroupName Property supports option buttons, but why
> > > does the GroupName property show up in the Properties window of the VBE? Am
> > > I wrong about the possiblity of the checkboxes acting like option buttons?
> > >
> > > Ryan
> > >
> > > "Joel" wrote:
> > >
> > > > You can make a check box look like an option button by deselecting the other
> > > > boxes when one comes true
> > > >
> > > >
> > > > Private Sub CheckBox2_Click()
> > > > if checkbox2 = true then
> > > > checkbox1 = false
> > > > checkbox 3 = false
> > > > end if
> > > > End Sub
> > > >
> > > >
> > > >
> > > > "Dave Peterson" wrote:
> > > >
> > > > > That's the way checkboxes work.
> > > > >
> > > > > Maybe you meant to use OptionButtons -- they'll only allow one option to be
> > > > > chosen in each group.
> > > > >
> > > > >
> > > > >
> > > > > RyanH wrote:
> > > > > >
> > > > > > I have 4 Checkboxes in a UserForm. I have given all 4 Checkboxes the
> > > > > > GroupName = "Shipping" in the Properties Window in the VBA Editor. We I Show
> > > > > > the UserForm and click on one Checkbox the others do not turn off, why?
> > > > > >
> > > > > > Thanks in Advance,
> > > > > > Ryan
> > > > >
> > > > > --
> > > > >
> > > > > Dave Peterson
> > > > >

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


--

Dave Peterson
 
Reply With Quote
 
RyanH
Guest
Posts: n/a
 
      8th May 2008
I would agree with that. I switched to option buttons and everything is great!

Thanks

"Dave Peterson" wrote:

> I wouldn't want to clutter my userforms with stuff like that.
>
> I wouldn't want to use Tools|Options and see instructions on each tab explaining
> how checkboxes should be used.
>
> I wouldn't expect most users to read these kinds of instructions, either.
>
> Joel wrote:
> >
> > Adding instruction on the userfrom to "Select One" will eliminate the
> > confussion
> >
> > "Dave Peterson" wrote:
> >
> > > Just to add to what Joel wrote...
> > >
> > > It's not always what the developer thinks looks nice. As a user, I would expect
> > > checkboxes to be independent of each other -- and grouped optionbuttons to be
> > > mutually exclusive.
> > >
> > > If the developer doesn't follow those rules, it can be more confusing to the
> > > user.
> > >
> > > RyanH wrote:
> > > >
> > > > I could use option buttons, but I would prefer the look of the checkboxes.
> > > > The help section says the GroupName Property supports option buttons, but why
> > > > does the GroupName property show up in the Properties window of the VBE? Am
> > > > I wrong about the possiblity of the checkboxes acting like option buttons?
> > > >
> > > > Ryan
> > > >
> > > > "Joel" wrote:
> > > >
> > > > > You can make a check box look like an option button by deselecting the other
> > > > > boxes when one comes true
> > > > >
> > > > >
> > > > > Private Sub CheckBox2_Click()
> > > > > if checkbox2 = true then
> > > > > checkbox1 = false
> > > > > checkbox 3 = false
> > > > > end if
> > > > > End Sub
> > > > >
> > > > >
> > > > >
> > > > > "Dave Peterson" wrote:
> > > > >
> > > > > > That's the way checkboxes work.
> > > > > >
> > > > > > Maybe you meant to use OptionButtons -- they'll only allow one option to be
> > > > > > chosen in each group.
> > > > > >
> > > > > >
> > > > > >
> > > > > > RyanH wrote:
> > > > > > >
> > > > > > > I have 4 Checkboxes in a UserForm. I have given all 4 Checkboxes the
> > > > > > > GroupName = "Shipping" in the Properties Window in the VBA Editor. We I Show
> > > > > > > the UserForm and click on one Checkbox the others do not turn off, why?
> > > > > > >
> > > > > > > Thanks in Advance,
> > > > > > > Ryan
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Dave Peterson
> > > > > >
> > >
> > > --
> > >
> > > Dave Peterson
> > >

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      8th May 2008
And it makes your life as a developer much easier!

RyanH wrote:
>
> I would agree with that. I switched to option buttons and everything is great!
>
> Thanks
>
> "Dave Peterson" wrote:
>
> > I wouldn't want to clutter my userforms with stuff like that.
> >
> > I wouldn't want to use Tools|Options and see instructions on each tab explaining
> > how checkboxes should be used.
> >
> > I wouldn't expect most users to read these kinds of instructions, either.
> >
> > Joel wrote:
> > >
> > > Adding instruction on the userfrom to "Select One" will eliminate the
> > > confussion
> > >
> > > "Dave Peterson" wrote:
> > >
> > > > Just to add to what Joel wrote...
> > > >
> > > > It's not always what the developer thinks looks nice. As a user, I would expect
> > > > checkboxes to be independent of each other -- and grouped optionbuttons to be
> > > > mutually exclusive.
> > > >
> > > > If the developer doesn't follow those rules, it can be more confusing to the
> > > > user.
> > > >
> > > > RyanH wrote:
> > > > >
> > > > > I could use option buttons, but I would prefer the look of the checkboxes.
> > > > > The help section says the GroupName Property supports option buttons, but why
> > > > > does the GroupName property show up in the Properties window of the VBE? Am
> > > > > I wrong about the possiblity of the checkboxes acting like option buttons?
> > > > >
> > > > > Ryan
> > > > >
> > > > > "Joel" wrote:
> > > > >
> > > > > > You can make a check box look like an option button by deselecting the other
> > > > > > boxes when one comes true
> > > > > >
> > > > > >
> > > > > > Private Sub CheckBox2_Click()
> > > > > > if checkbox2 = true then
> > > > > > checkbox1 = false
> > > > > > checkbox 3 = false
> > > > > > end if
> > > > > > End Sub
> > > > > >
> > > > > >
> > > > > >
> > > > > > "Dave Peterson" wrote:
> > > > > >
> > > > > > > That's the way checkboxes work.
> > > > > > >
> > > > > > > Maybe you meant to use OptionButtons -- they'll only allow one option to be
> > > > > > > chosen in each group.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > RyanH wrote:
> > > > > > > >
> > > > > > > > I have 4 Checkboxes in a UserForm. I have given all 4 Checkboxes the
> > > > > > > > GroupName = "Shipping" in the Properties Window in the VBA Editor. We I Show
> > > > > > > > the UserForm and click on one Checkbox the others do not turn off, why?
> > > > > > > >
> > > > > > > > Thanks in Advance,
> > > > > > > > Ryan
> > > > > > >
> > > > > > > --
> > > > > > >
> > > > > > > Dave Peterson
> > > > > > >
> > > >
> > > > --
> > > >
> > > > Dave Peterson
> > > >

> >
> > --
> >
> > 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
Group checkboxes on subform Yara Microsoft Access Forms 5 29th Nov 2009 11:07 AM
Validate group of checkboxes =?Utf-8?B?Sm9u?= Microsoft ASP .NET 1 29th Sep 2006 06:03 PM
disable group of checkboxes if.... JethroUK© Microsoft Access Form Coding 1 20th May 2006 03:49 PM
Looping through a group of checkboxes asdfasdf Microsoft Excel Programming 9 13th Oct 2005 02:04 AM
How to select checkBoxes as a group in Fendic Microsoft Excel Programming 1 7th Jun 2005 02:43 AM


Features
 

Advertising
 

Newsgroups
 


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