请教老师:如何筛选后,部分数据粘贴到另个表中
请教老师:如何对任意条件筛选后,按上面按钮,将A和F:M数据粘贴到Sheet2中(参考例子已经做完)。具体请见例子:
筛选后,部分数据粘贴到另个表中.rar
(17.32 KB)
Sub tn() Dim k, i, m As Long Dim max_row As Long With Sheet1 max_row = .[a:c].Find("*", , xlValues, , , xlPrevious).Row Sheet3.Rows.Clear For i = 2 To max_row If .Rows(i).Hidden = False Then Sheet3.Cells(m + 1, 1) = .Cells(i, 1) For k = 6 To 13 Sheet3.Cells(m + 1, k - 4) = .Cells(i, k) Next m = m + 1 End If Next End With End Sub
[此贴子已经被作者于2019-9-20 09:54编辑过]
[此贴子已经被作者于2019-9-20 09:55编辑过]