Put "x" in Cell

L

Legacy 436357

Guest
Hello is there a way to have a column that when clicking on a cell in that column, an "x" is inserted and clicking again clears it?

My table on that sheet column starts at row 7 if that matters.

Thank you very much for your help
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Search the board (and elsewhere) for Marlett checkboxes for many examples.
 
Upvote 0
I found this code but it will only have one "x" at a time. I want to be able to have multiple "x" marks in the column. Can it be altered or maybe another way?

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    Cancel = True
    If Target.Column <> 12 Then Exit Sub
    If Target.Value = "X" Then
        Target.Value = vbNullString
    Else
        Target.Value = "X"
    End If
End Sub
 
Upvote 0
That code should work for all of column L. What is it you want?
 
Upvote 0

Forum statistics

Threads
1,215,770
Messages
6,126,791
Members
449,336
Latest member
p17tootie

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