First post on here.
I'm looking to double click one cell from a FILTER function results and get that row copied to another workbook.
For example, let's say that
gives me 10 results. I want to double click Cell A of one of those 10 results and get the whole row copied to another workbook.
While searching, I came across the code shown below by Tom Urtis. With very little modification, it does what I need, but not for FILTER function results. I just learned you cannot just copy/paste FILTER function results, you have to copy/PASTE VALUES. I tried this:
but that gives me an error.
Any ideas on how to accomplish this?
Thank you.
I'm looking to double click one cell from a FILTER function results and get that row copied to another workbook.
For example, let's say that
Excel Formula:
[B]=FILTER(A5:D20,C5:C20=H2,"")[/B]
While searching, I came across the code shown below by Tom Urtis. With very little modification, it does what I need, but not for FILTER function results. I just learned you cannot just copy/paste FILTER function results, you have to copy/PASTE VALUES. I tried this:
VBA Code:
.PasteSpecial Paste:=xlPasteValues
Any ideas on how to accomplish this?
Thank you.
VBA Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Column <> 1 Then Exit Sub
Cancel = True
With Sheets("Sheet3")
Target.EntireRow.Copy .Range("A" & .Cells(Rows.Count, 1).End(xlUp).row + 1)
End With
End Sub