Check Box

ArbiterWolf

New Member
Joined
Jan 15, 2022
Messages
19
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I have a sheet that looks like this.
EXCEL_uroDRFZXpb.png



I would like to create buttons that say "Check All Commercial" "Check All Residential" "Check All RollOff" "Check All" "Uncheck All" and have them actually check mark the coordinating checkmark boxes. How would I go about doing that?

Also it would be nice to have a counter on the bottom counting the check marked boxes.

Can Excel do windowed forms? Im Trying to make something like this for our clients that is user friendly. We want to give them a form to fill out to send back to us showing what they are requesting.

Thank you in advance!!
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
attach a link to your sample workbook. Upload the sample to onedrive or similar file sharing place.
 
Upvote 0
Here is the code to turn on Commercial and turn off the others

VBA Code:
Sub CommercialChkbx()
    Dim cb As CheckBox, r

    For Each cb In ActiveSheet.CheckBoxes
        r = cb.TopLeftCell.Row
        If Cells(r, "B") = "COMMERCIAL" Then
            cb.Value = xlOn
        Else
            cb.Value = xlOff
        End If
    Next cb

End Sub
 
Upvote 0
Solution

Forum statistics

Threads
1,214,377
Messages
6,119,183
Members
448,872
Latest member
lcaw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top