|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
参与一下。。。
- Sub ykcbf() '//2024.5.1
- ReDim brr(1 To 10000, 1 To 3)
- For Each sht In Sheets
- If InStr(sht.Name, "Sheet") Then
- With sht
- r = .Cells(Rows.Count, 1).End(3).Row
- arr = .[a1].Resize(r, 3)
- End With
- For i = 2 To UBound(arr)
- If arr(i, 3) = "bounced" Then
- m = m + 1
- For j = 1 To UBound(arr, 2)
- brr(m, j) = arr(i, j)
- Next
- End If
- Next
- End If
- Next
- With Sheets("bounced")
- .UsedRange.ClearContents
- .[a3].Resize(m, 3) = brr
- End With
- MsgBox "OK!"
- End Sub
复制代码
|
评分
-
1
查看全部评分
-
|