When a user double-clicks on a cell in one worksheet (on row 10), I want to put the location of that column in F3 on another worksheet.
So if the user double-clicks on a cell in row 10, column 5 on "Deliverables", I want 5 to go into F3 on "Deliverables Prep".
But when I execute the above code, I get this error message, "Object doesn't support this property or method."
I've even tried this code, but without success:
What am I missing please?
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
If Target.Column > 2 And Target.Row = 10 Then
Dim c As Long
c = Worksheets("Deliverables").ActiveCell.Column
Worksheets("Deliverables Prep").Range("F3") = c
End If
End Sub
But when I execute the above code, I get this error message, "Object doesn't support this property or method."
I've even tried this code, but without success:
Code:
Worksheets("Deliverables Prep").Range("F3") = Worksheets("Deliverables").ActiveCell.Column