#1   Report Post  
Posted to microsoft.public.excel.misc
gti_jobert
 
Posts: n/a
Default Userform Checkboxes


Hello all,

This may seem quite trivial but I was wondering if a checkbox on a user
form could check other checkboxes on the same userform. Sounds simple
but I still cant get it to work...using following code:


Code:
--------------------
Private Sub xbAllAreas_Click()
If xbAllAreas.Value = True Then
xbBrivCart.Value = True
xbPace.Value = True
xbThreadRolling.Value = True
xbPodding.Value = True
xbHeading.Value = True
End If
End Sub
--------------------


Any ideas appreciated.....and I dont want to use combo boxes as an
alternative unless I really have too! Cheers!


--
gti_jobert
------------------------------------------------------------------------
gti_jobert's Profile: http://www.excelforum.com/member.php...o&userid=30634
View this thread: http://www.excelforum.com/showthread...hreadid=505677

  #2   Report Post  
Posted to microsoft.public.excel.misc
Jim Cone
 
Posts: n/a
Default Userform Checkboxes

g,

This works for me on a UserForm...

If CheckBox1.Value = True then
CheckBox2.Value = True
Else
CheckBox2.Value = False
End If

Also...

CheckBox2.Value = CheckBox1.Value

or...

CheckBox2.Value = Not CheckBox1.Value

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"gti_jobert" wrote in message
Hello all,
This may seem quite trivial but I was wondering if a checkbox on a user
form could check other checkboxes on the same userform. Sounds simple
but I still cant get it to work...using following code:
Code:
--------------------
Private Sub xbAllAreas_Click()
If xbAllAreas.Value = True Then
xbBrivCart.Value = True
xbPace.Value = True
xbThreadRolling.Value = True
xbPodding.Value = True
xbHeading.Value = True
End If
End Sub
--------------------
Any ideas appreciated.....and I dont want to use combo boxes as an
alternative unless I really have too! Cheers!
--
gti_jobert

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
printen userform problem Pierre via OfficeKB.com Excel Worksheet Functions 0 January 3rd 06 04:45 PM
Userform with Checkboxes Greg B Excel Discussion (Misc queries) 5 November 27th 05 09:32 PM
Data Validation Cell - Move to UserForm thom hoyle Excel Worksheet Functions 0 April 28th 05 12:23 AM
Cell Content from UserForm Not Retained D.Parker Excel Discussion (Misc queries) 3 April 27th 05 04:56 PM
How can I run a macro in the background whilst a UserForm is visib cdb Excel Discussion (Misc queries) 3 February 10th 05 06:58 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"