|
用时的那段代码没什么用,觉得没必要就删掉
- Sub 找()
- Dim r As Range
- [b2:d84].ClearContents
- t = Timer
- Application.ScreenUpdating = False
- For i = 2 To Sheet1.Range("a65536").End(xlUp).Row
- For k = 0 To -3 Step -1
- For j = 2 To 3913
- If Sheet2.Cells(j, 4).Offset(0, k) = "*" Then
- m = "aaaaaa"
- Else
- m = Sheet2.Cells(j, 4).Offset(0, k).Value
- End If
- Set r = Sheet1.Range("a" & i).Find(m, , , xlPart)
- If Not r Is Nothing Then
- Cells(i, 2) = Sheet2.Cells(j, "e")
- Cells(i, 3) = Sheet2.Cells(j, "f")
-
- GoTo line
- End If
-
- Next
- Next
- line:
- Next
- Application.ScreenUpdating = True
- [e1] = "用时" & Format(Timer - t, "0.000000s")
- End Sub
复制代码 |
|