Greetings
I have a Table - "ItemDB" - that has 3 columns namely Item, Qty and Taken.
Table starts at B5 through to F5 - Headings
My Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("B:F")) Is Nothing Then
Cancel = True
With Target
.EntireRow.Range("B1:F1").ClearContents
.Value = ""
.Offset(1, 0).Select
.Select
End With
End If
If Not Target Is Nothing Then Target.Delete xlUp
Problem:
When I DoubleClick in any column within the table, the row is deleted.
I need the DoubleClick delete row to only be available in Column B.
Can someone assist me?
Thanks
End Sub
I have a Table - "ItemDB" - that has 3 columns namely Item, Qty and Taken.
Table starts at B5 through to F5 - Headings
My Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("B:F")) Is Nothing Then
Cancel = True
With Target
.EntireRow.Range("B1:F1").ClearContents
.Value = ""
.Offset(1, 0).Select
.Select
End With
End If
If Not Target Is Nothing Then Target.Delete xlUp
Problem:
When I DoubleClick in any column within the table, the row is deleted.
I need the DoubleClick delete row to only be available in Column B.
Can someone assist me?
Thanks
End Sub