I am looking for some help on a specific worksheet.
I would like to be able to double click on a cell ( that has data in it ) and when I do so, the contents of the cell double clicked is copied to cell E2
Then be able to double click on another cell and have that cell’s contents copied to cell E2
The Code I’m working with is :
Sub Worksheet_AfterDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim rInt As Range
Dim rCell As Range
Set rInt =Intersect( Target, Range(“C3:P312”))
Set rCell = Range (“E2”)
If Not rInt Is Nothing Then
rInt.Value = rCell
End If
Cancel = True
End Sub
-
Copy to Specific Cell on Double click (Excel 2003)
- This topic has 4 replies, 2 voices, and was last updated 16 years, 10 months ago.
AuthorViewing 0 reply threadsAuthorViewing 0 reply threads