Hey all,
I needsome help and not sure where else to turn. Tried searching for an answer to my problembut couldn't find anything.
So whatI'm trying to do is, in a single spreadsheet, when I double click a specificcell in column J it will copy the content into a cell in column A. What I wouldlike is that when I double click on let's say cell J10, it should copy thecontent into cell A3. If I then click on J20, it should copy into cell A4,followed by A5, A6, etc... in order. Right now, with the code I have in place,it's simply copying the content into column A (correct column), but it copiesonto the same row as the cell I double clicked, so instead of being in A3 whereI want it, it's in A10 (example). Currently, this is the code I have in place:
PrivateSub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target,Range("J:J")) Is Nothing Then
Cancel = True 'Cancels edit mode that is noramally invokedwith double click
Target.Copy Destination:=Cells(Target.Row,"A")
End If
End Sub
Hopethis is easy enough to understand. Any help would be appreciated.
Thanks!!
I needsome help and not sure where else to turn. Tried searching for an answer to my problembut couldn't find anything.
So whatI'm trying to do is, in a single spreadsheet, when I double click a specificcell in column J it will copy the content into a cell in column A. What I wouldlike is that when I double click on let's say cell J10, it should copy thecontent into cell A3. If I then click on J20, it should copy into cell A4,followed by A5, A6, etc... in order. Right now, with the code I have in place,it's simply copying the content into column A (correct column), but it copiesonto the same row as the cell I double clicked, so instead of being in A3 whereI want it, it's in A10 (example). Currently, this is the code I have in place:
PrivateSub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target,Range("J:J")) Is Nothing Then
Cancel = True 'Cancels edit mode that is noramally invokedwith double click
Target.Copy Destination:=Cells(Target.Row,"A")
End If
End Sub
Hopethis is easy enough to understand. Any help would be appreciated.
Thanks!!