Trigger after change check box chek

JAEGUN

New Member
Joined
Sep 21, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello,

I'm using Form controls checkbox in my sheet.
Due to the size of documents, I make the xlcalculationManual always.

I inserted some check box in my sheet, and whenever change the check/uncheck on each checkbox,
I'd like to execute calculation automatically 1 iteration.

I'm using lots of checkbox on my sheet.. I can't make code for every checkbox..
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Using Form Control checkboxes they can all have same .OnAction = "name of macro to run"
and will all run the same macro, for example
VBA Code:
Sub RunForAllChkBoxes()
    With ActiveSheet.CheckBoxes(Application.Caller)
        If .Value = xlOff Then
            'don't do anything
            Exit Sub
        Else
            'execute calculation 1 iteration
            Calculate
        End If
    End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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