You don't macros to do such simple things!!!
You can use one of the Forms controls that is called "CheckBox"
BAsed on your Excel version do this:
In Excel 2003 or earlier:
- View > Toolbars > Form toolbar
- Draw a checkbox
In Excel2007:
- Office logo > Excel Options > Popular > Show Developer toolbar
- Developer bar > Insert > Form > Checkbox
- Draw it
In both after you draw the checkbox:
- Right click > Format Control > Cell link
- Select cell, make it C2
- Ok
- In C3 paste this
=IF( C1, 0.02, 0.04)
- Now cell C3 will give you the tax % based on the checkbox, so all you need to paste any cell
=A1*C3
Assuming A1 has the number you want to multiply by tax%
VBAXLMan is here to feed your Excel needs
----------------------- Edit ---------------------
I am sorry, the function in C3 should be
=IF( C2, 0.02, 0.04)
Instead of
=IF( C1, 0.02, 0.04)
I am very sorry about this
----------------------- Edit ---------------------