|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
sub QQ378638653()
rw=sheet1.cells(rows.count,33).end(3).row
ar=sheet1.range("a2:ag"&rw)
redim br(1 to ubound(ar),1 to ubound(ar,2))
for i=1 to ubound(ar)
if ar(i,33)<>"" then
if instr(ar(i,33),"7")<>1 and instr(ar(i,33),"9787")<>1 then
n=n+1
for j=1 to ubound(ar,2)
br(n,j)=ar(i,j)
next
end if
end if
next
sheet1.range("a2").resize(ubound(ar),ubound(ar,2)).clearcontents
sheet1.range("a2").resize(n,ubound(ar,2))=br
end sub
没下附件,没有测试 |
|