Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I am trying to create a command button in Microsoft Excel (Office 2000) that enables me to reset the check box status for a worksheet from checked to unchecked. The worksheet contains approximately 50 check boxes and is meant to be reused. Is this possible? If so, how can I program it to do so? Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello Arand, Copy this macro into a VBA module and then attach the macro to your command button. It will clear all chekboxes on the active worksheet automatically. Code: -------------------- Sub ClearCheckBoxes() Dim AutoShape For Each AutoShape In ActiveSheet.Shapes If AutoShape.Type = msoFormControl Then If AutoShape.FormControlType = xlCheckBox Then AutoShape.ControlFormat.Value = False End If End If Next AutoShape End Sub -------------------- Sincerely, Leith Ross -- Leith Ross ------------------------------------------------------------------------ Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465 View this thread: http://www.excelforum.com/showthread...hreadid=555428 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Arand,
Assuming that the checkboxes are from the Forms toolbar, try: '============= Public Sub Tester() ActiveSheet.CheckBoxes.Value = xlOff End Sub '<<============= --- Regards, Norman "arand" <u23437@uwe wrote in message news:62531f4ca81e7@uwe... Hello, I am trying to create a command button in Microsoft Excel (Office 2000) that enables me to reset the check box status for a worksheet from checked to unchecked. The worksheet contains approximately 50 check boxes and is meant to be reused. Is this possible? If so, how can I program it to do so? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel and Visual Basic | Excel Worksheet Functions | |||
Is Visual Basic the same as Visual Studio 2008? | Excel Worksheet Functions | |||
Can I run Visual Basic procedure using Excel Visual Basic editor? | Excel Programming | |||
changing the visual basic in office 2003 to visual studio net | Excel Discussion (Misc queries) | |||
Excel/Visual Basic | Excel Programming |