LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA Problem - Clearing multiple checkboxes

Hi I have an excel spreadsheet that has 156 checkboxes on it. What I a
trying to do is with the click of a command button, I want to be abl
to clear all check boxes at once.

I know there is an easier way than going through all 156 checkboxes an
setting their value to false.

Eg. CheckBox1.Value = False
CheckBox2.Value = False

Can this be done in a For statement or something simple that wil
execute when the command button is pressed and clear all th
checkboxes.

I have tried doing something like this but it does not work:

Private Sub Cmd1_Click()
Dim i As Integer

For i = 1 To 156 Step 1
Checkbox(i).Value = False
Next i

End Sub

Can someone help me out?
Thank

--
Message posted from http://www.ExcelForum.com

 
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
Clearing Multiple Filters? Mel Excel Discussion (Misc queries) 5 August 29th 08 10:34 PM
Multiple Checkboxes Annie Excel Discussion (Misc queries) 2 June 11th 07 05:06 PM
how do you insert multiple simple checkboxes in an Excel Spreadshe mgreen74 Excel Discussion (Misc queries) 0 March 8th 06 03:19 PM
Clearing multiple cells in 1 click? Lewis Koh Excel Worksheet Functions 11 August 2nd 05 02:51 AM
Clearing a Column range in Multiple Workbooks Ruan[_3_] Excel Programming 1 August 15th 03 07:43 PM


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

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

About Us

"It's about Microsoft Excel"