

At step 6, you can add your own code lines to automate all kinds of tasks. Instead of inserting a Form control, simply insert an ActiveX control.Ģ. Hold down CTRL and use the left mouse button to select multiple checkboxes.įinally, you can use VBA to create powerful checkboxes in Excel. To delete multiple checkboxes, execute the following steps.ġ. Download the Excel file and test the dynamic chart (third sheet).

Uncheck the first checkbox and check the second checkbox. To achieve this, select the chart, right click, and then click Select Data.ĩ. Use the new data series to create the combination chart. If the checkbox is unchecked, the new data series changes to a range with #N/A errors.Ĩ. Repeat this step for the new Profit data series.Įxplanation: if the checkbox is checked, the old and new data series are the same. Use the fill handle to copy this formula down to cell F13.ħ. We're now going to create two new data series.Ħ. Right click the second checkbox and click Format Control. Right click the first checkbox and click Format Control. For example, create a combination chart with two data series (Rainy Days and Profit).ģ. Let's take a look at one more cool example that uses checkboxes. Download the Excel file and test the checklist (second sheet). Note: we created a conditional formatting rule to automatically change the background color of cell B16. Insert an IF function that determines if you're good to go. Insert a COUNTIF function to count the number of items packed.Ĩ. Repeat step 4 for the other checkboxes.Ħ. Link the checkbox to the cell next to it (cell C2).ĥ. Right click the first checkbox and click Format Control.Ĥ.

Click on the lower right corner of cell B2 and drag it down to cell B11.ģ. To create a checklist, execute the following steps.Ģ. Right click the checkbox and click Format Control.ĥ. To link a checkbox to a cell, execute the following steps.ġ. To remove "Check Box 1", right click the checkbox, click the text and delete it.

For example, draw a checkbox in cell B2.Ĥ.
