Sub aa()
Dim mSht As Worksheet
Dim ar, ar1()
Dim s%, s1%
Dim mStr$
On Error Resume Next
ar = Array("aa", "cc", "ff")
For Each mSht In Worksheets
mStr = mSht.Name
s = Application.WorksheetFunction.Match(mStr, ar, 0)
If Err.Number <> 0 Then
ReDim Preserve ar1(s1)
ar1(s1) = mSht.Name
s1 = s1 + 1
Err.Clear
End If
Next
End Sub作者: dechiuan999 時間: 2010-10-17 11:24