KeithQuigley

New Member
Joined
Jun 13, 2010
Messages
5
does anyone have a simple way of adding a check/tick to a cell? i have an order sheet and the products are in a list in column 1A and the sizes of the product is in the first row. i want to be able to tick each one?


and total the final ones which i can probably manage, unless adding the check box/tick is tricky
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
try this

set the font to Martlett. In this font, "a" is a tick

Add the following code (right-click on sheet tab, select "view code"):

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Value = "" Then
Target = "a"
Else
If Target.Value = "a" Then Target = ""
End If

Cancel = True
End Sub


Double-clicking any cell will swap between "a" and a blank cell. You can use the a in any formulas needed to retrieve your results, e.g. If, Sumif, Sumproduct etc

Note this code changes ANY cell. You should add additional error handling to ensure that only the cells you want are changed, say, by asking if target.column = 1
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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