ALT+F11æå¼VBAï¼æå
¥æ¨¡åï¼ç²è´´ä»¥ä¸ä»£ç ï¼F5è¿è¡ã
Sub test()
Dim j, k As Integer
Sheet1.Activate
j = Range("a65535").End(xlUp).Row
For i = j To 1 Step -1
hv = Cells(i, 8)
If hv = 6 Then
Cells(j - k, 9) = Cells(i, 1)
Cells(j - k, 10) = Cells(i, 2)
Cells(j - k, 11) = Cells(i, 3)
Cells(j - k, 12) = Cells(i, 4)
Cells(j - k, 13) = Cells(i, 5)
Cells(j - k, 14) = Cells(i, 6)
Cells(j - k, 15) = Cells(i, 7)
Cells(j - k, 16) = Cells(i, 8)
k = k + 1
End If
Next
End Sub
温馨提示:内容为网友见解,仅供参考