- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-25
|
Sub ¬d¸ß()
Dim Arr, Brr, T$, Sht As Worksheet, i&, j%, Mr, N&
T = [D3]: If T = "" Then MsgBox "¥¼¿é¤J¬d¸ß¦r¦ê!! ": Exit Sub
[B7:M3000].ClearContents
Mr = Array(1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
ReDim Brr(1 To 30000, 1 To 12)
For Each Sht In Sheets
If Sht.Name = "¾ã¦X¬d¸ß" Then GoTo 101
Arr = Sht.UsedRange
For i = 2 To UBound(Arr)
If InStr(Arr(i, 4), T) Then
N = N + 1: Brr(N, 1) = Sht.Name
For j = 1 To 11: Brr(N, j + 1) = Arr(i, Mr(j - 1)): Next
End If
Next i
101: Next
If N > 0 Then [B7:M7].Resize(N) = Brr
End Sub |
|