Hi,
I'm trying to determine if a cell in a range of cells is double clicked. The columns are B and C and the Rows are 3 to the Last Row. My code looks like this:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim LR As Long
'-------------------------------------------------------
'Get Data
'-------------------------------------------------------
LR = Sheets("Location Master").Cells(Rows.Count, 1).End(xlUp).Row
If Target.Column = Range("2" & "3") And Target.Row = Range("3" & LR) Then
Sheets("Location Master").Activate
Call ParkAtTop("Location Master")
End If
End Sub
I'm getting a Debug Error in the Target statement when running the code.
Thanks for your help.
I'm trying to determine if a cell in a range of cells is double clicked. The columns are B and C and the Rows are 3 to the Last Row. My code looks like this:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim LR As Long
'-------------------------------------------------------
'Get Data
'-------------------------------------------------------
LR = Sheets("Location Master").Cells(Rows.Count, 1).End(xlUp).Row
If Target.Column = Range("2" & "3") And Target.Row = Range("3" & LR) Then
Sheets("Location Master").Activate
Call ParkAtTop("Location Master")
End If
End Sub
I'm getting a Debug Error in the Target statement when running the code.
Thanks for your help.