展开全部
Sub cxx()
arr = Split([F3], "/")
N = UBound(arr) + 1
ReDim S(1 To N, 1 To 2)
For I = 0 To UBound(arr)
S(I + 1, 1) = Left(arr(I), 1)
S(I + 1, 2) = Right(arr(I), 1)
Next
For I = 1 To 10
For J = 1032 To 33 Step -1
For k = 1 To N
c = Cells(J, I)
If (Mid(c, 1, 1) - -Mid(c, 4, 1)) Mod 10 - S(k, 1) = 0 And (Mid(c, 3, 1) - -Mid(c, 3, 1)) Mod 10 - S(k, 2) = 0 Then
Cells(J, I).Delete shift:=xlUp
Exit For
End If
Next
Next
Next
End Sub
arr = Split([F3], "/")
N = UBound(arr) + 1
ReDim S(1 To N, 1 To 2)
For I = 0 To UBound(arr)
S(I + 1, 1) = Left(arr(I), 1)
S(I + 1, 2) = Right(arr(I), 1)
Next
For I = 1 To 10
For J = 1032 To 33 Step -1
For k = 1 To N
c = Cells(J, I)
If (Mid(c, 1, 1) - -Mid(c, 4, 1)) Mod 10 - S(k, 1) = 0 And (Mid(c, 3, 1) - -Mid(c, 3, 1)) Mod 10 - S(k, 2) = 0 Then
Cells(J, I).Delete shift:=xlUp
Exit For
End If
Next
Next
Next
End Sub
来自:求助得到的回答
2015-07-02 · 知道合伙人软件行家
关注
展开全部
看不到条件 不好说
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
temp = Range("a33:j1032").Replace(Range("f3"), "", xlWhole)
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询