Sub CopyFilterResult()
Worksheets("sheet2").Columns("A:H").ClearContents
Worksheets("sheet1").Select
With Worksheets("Sheet1")
If .FilterMode Then '如果处于筛选模式
Range("A:H").Copy
End If
End With
Worksheets("Sheet2").Select
Range("a1").Select
ActiveSheet.Paste
End Sub