You have several issues going on. Which do you want to solve first?
You lost me. For example, in Sheet3, I don't know what you are doing there. Please explain in words.
You would save yourself a lot of effort if you would use Option Explicit at top of each object: worksheet, module, etc. Then in VBE's Debug menu, Compile before any Run.
I made a few changes in Sheet3's BeforeDoubleclick code as commented and a bit more. Still, it really doesn't do anything in that sheet.
'Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range)
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim lastVisRow As Long, lastRow As Long, rng As Range
'If Target.Column <> 11 Is Nothing Then Exit Sub
If Target.Column <> 11 Then Exit Sub
lastVisRow = Cells(Rows.Count, 10).End(xlUp).Row
If Target.Column >= 11 And Target.Row = lastVisRow Then
Cancel = True 'turn off edit in cell?
Application.EnableEvents = False
Selection.AutoFilter 'Selection? What is selected?
Range("k1").AutoFilter 'Data is only in columns A:B, why filter K1?
Range("j1:k" & lastRow).AutoFilter Field:=2, Criteria1:="yes" 'No data in those columns
AutoFilter.Range.Offset(2, -1).Copy Destination:=Range("l1")
Cells(1).AutoFilter
Application.EnableEvents = True
End If
End Sub
Bookmarks