V
Vato Loco
I am currently using this code ti click "x" in to a column of cells. I
there a way I can select only certain cells in a column, like b2:b8, o
individual cells?
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Target.Column <> 2 And Target.Column <> 4 Then Exit Sub
On Error GoTo errhandler
Application.EnableEvents = False
With Target.Offset(0, 1)
If .Value = "" Then
.Value = "X"
Else
.Value = ""
End If
End With
errhandler:
Application.EnableEvents = True
End Sub
Thanks, Vat
there a way I can select only certain cells in a column, like b2:b8, o
individual cells?
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Target.Column <> 2 And Target.Column <> 4 Then Exit Sub
On Error GoTo errhandler
Application.EnableEvents = False
With Target.Offset(0, 1)
If .Value = "" Then
.Value = "X"
Else
.Value = ""
End If
End With
errhandler:
Application.EnableEvents = True
End Sub
Thanks, Vat