Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default uncheck checkboxes from a form

Dim ctl As Control
For Each ctl In Me.Controls
If TypeName(ctl) = "CheckBox" Then
ctl.Value = False
End If
Next ctl

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Ben" wrote in message
...
Hi all,

I have a form with a list of 15 checkboxes. How do I use a FOR EACH loop
to uncheck all the checkboxes? Thanks for your help.

Ben

--



  #2   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default uncheck checkboxes from a form

Bob,

It worked. Thanks again.

Ben

--



"Bob Phillips" wrote:

Dim ctl As Control
For Each ctl In Me.Controls
If TypeName(ctl) = "CheckBox" Then
ctl.Value = False
End If
Next ctl

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Ben" wrote in message
...
Hi all,

I have a form with a list of 15 checkboxes. How do I use a FOR EACH loop
to uncheck all the checkboxes? Thanks for your help.

Ben

--




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
How to clear all checkboxes on a form? Arlen Excel Worksheet Functions 2 May 6th 10 04:20 PM
How do I uncheck numerous Excel2003 form toolbar check boxes? Bryan Excel Worksheet Functions 1 July 28th 08 06:31 PM
User Form with CheckBoxes Paige Excel Programming 4 August 23rd 06 07:15 PM
Adding Checkboxes to a Form Bill[_30_] Excel Programming 3 June 26th 06 11:57 PM
How do I check/uncheck ten or odd Checkboxes by click on one check Ken Vo Excel Discussion (Misc queries) 5 January 4th 06 11:10 PM


All times are GMT +1. The time now is 02:13 AM.

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"