doubleclick linking

bizdynamics

New Member
Joined
Jan 25, 2010
Messages
3
I am using a worksheet that contains a column (e.g. Col. C) of dates (format is dd/mm). A second worksheet has one cell (Col. K, Row 3)that needs to be populated by the data from any one of the cells in Col C when I doubleclick on that specific cell. I would like to be able to jump to worksheet2!K3 when I doubleclick at the same time. How do I go about this. There are 875 rows in Col. C.
Tnx
Bob
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

doofusboy

Well-known Member
Joined
Oct 14, 2003
Messages
1,325
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    If Target.Column = 3 Then
        Sheet2.Range("K3").Value = Target.Value
    End If
End Sub
 

bizdynamics

New Member
Joined
Jan 25, 2010
Messages
3
Doesn't seem to do the trick... Or perhaps I'm missing something. Entered code in worksheet 1, and the worksheet just sits there and mocks me!
 

doofusboy

Well-known Member
Joined
Oct 14, 2003
Messages
1,325
My bad, forgot the piece to redirect you to Sheet2. Try this:

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    If Target.Column = 3 Then
        Sheet2.Range("K3").Value = Target.Value
        Sheet2.Activate
        Sheet2.Range("K3").Select
    End If
End Sub
 

Forum statistics

Threads
1,144,628
Messages
5,725,378
Members
422,621
Latest member
dfrare

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
Top