Check mark

bacpa

New Member
Joined
Jul 23, 2010
Messages
4
I want to click on a cell and a check mark put in the cell. Is that possible.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi bacpa,

It is possible, but it would involve some VBA code in the Sheet Selection_Change event handler.

Which cells do you require this to happen in.?
 
Upvote 0
An easy way is to change the font of the cell(s) and figure out what letter/number gives you the symbol you want; then use the double-click event.
Rich (BB code):
Option Explicit
    
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    If Target.Count = 1 And Not Application.Intersect(Target, Range("A1:A20")) Is Nothing Then
        Cancel = True
        If Target.Value = vbNullString Then
            Target.Value = "R"
        Else
            Target.ClearContents
        End If
    End If
End Sub
 
Upvote 0
This maybe above me, but I would like to be able to put a check mark in say cells A1-A10 and C1-C10
 
Upvote 0
I would like to be able to put a check mark in say cells A1-A10 and C1-C10 <!-- / message -->

This should do what you need:

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
 
    If Not Application.Intersect(Target, Range("A1:A10")) Is Nothing _
    Or Not Application.Intersect(Target, Range("C1:C10")) Is Nothing Then
        Target.Font.Name = "Marlett"
        Target.Value = "a"
    End If
 
End Sub
 
Upvote 0
You will need to add the "Else" if you want to be able to remove the check by Double Clicking.

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
 
    If Not Application.Intersect(Target, Range("A1:A10")) Is Nothing _
    Or Not Application.Intersect(Target, Range("C1:C10")) Is Nothing Then
        Target.Font.Name = "Marlett"
        Target.Value = "a"
    Else
         Target.ClearContents
    End If
 
End Sub
 
Upvote 0
Font windings2 and the Capital P is checkmark that is a little bigger.
Can you format those cells for windings2 and just type a Capital P, or Marlett and small a, or will something else go in the cells.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,716
Members
452,939
Latest member
WCrawford

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