ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to clear all checkboxes on a form? (https://www.excelbanter.com/excel-worksheet-functions/263221-how-clear-all-checkboxes-form.html)

Arlen

How to clear all checkboxes on a form?
 
That's it. How is it possible to create push-button functionality that
resets all checkboxes to empty?

Also, is it possible that pushing a button could increase a counter, or
light up a first, second and third cell, that would then be reset by the
button I asked for above?

I thank you for your time.

Arlen

Bob Phillips[_4_]

How to clear all checkboxes on a form?
 
For Each ctl In Me.Controls

If TypeName(ctl) = "CheckBox" Then

ctl.Value = False
End I
Next ctl

--

HTH

Bob

"Arlen" wrote in message
...
That's it. How is it possible to create push-button functionality that
resets all checkboxes to empty?

Also, is it possible that pushing a button could increase a counter, or
light up a first, second and third cell, that would then be reset by the
button I asked for above?

I thank you for your time.

Arlen




Arlen

How to clear all checkboxes on a form?
 
Thanks, Bob!

"Bob Phillips" wrote:

For Each ctl In Me.Controls

If TypeName(ctl) = "CheckBox" Then

ctl.Value = False
End I
Next ctl

--

HTH

Bob

"Arlen" wrote in message
...
That's it. How is it possible to create push-button functionality that
resets all checkboxes to empty?

Also, is it possible that pushing a button could increase a counter, or
light up a first, second and third cell, that would then be reset by the
button I asked for above?

I thank you for your time.

Arlen



.



All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com