John Caines
Well-known Member
- Joined
- Aug 28, 2006
- Messages
- 1,155
- Office Version
- 2019
- Platform
- Windows
Hello All.
I have a spreadsheet with about 450 cells that need to have a tick or a cross inserted into them.
I've found a great bit of code here;
https://www.extendoffice.com/documents/excel/4558-excel-tick-and-cross.html
which is 80% of what I would really like the vba to do,,,
code so far copied from website is;
Thing is,, I really want the double click to insert a cross that has a red background (Fill) for the cell, with the cross actually formatted to white text colour.
I'd love the 'Tick' to be a Green background (Fill) colour with the tick colour being black.
Does anybody know how to tweak the above code so that it can be formatted to do this?
I haven't a scoobies!
Any help would be most appreciated.
John C
I have a spreadsheet with about 450 cells that need to have a tick or a cross inserted into them.
I've found a great bit of code here;
https://www.extendoffice.com/documents/excel/4558-excel-tick-and-cross.html
which is 80% of what I would really like the vba to do,,,
code so far copied from website is;
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'Updateby Extendoffice
If Target.Cells.Count = 1 Then
If Not Intersect(Target, Range("B2:B12")) Is Nothing Then
With Target
.Font.Name = "Wingdings"
.Font.Size = 12
If .FormulaR1C1 = " û " Then
.FormulaR1C1 = "ü"
Else
.FormulaR1C1 = " û "
End If
End With
End If
Cancel = True
End If
End Sub
Thing is,, I really want the double click to insert a cross that has a red background (Fill) for the cell, with the cross actually formatted to white text colour.
I'd love the 'Tick' to be a Green background (Fill) colour with the tick colour being black.
Does anybody know how to tweak the above code so that it can be formatted to do this?
I haven't a scoobies!
Any help would be most appreciated.
John C