- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 257
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-27
|
¦^´_ 11# jeff5424 - Function AllCount(Sh1$, Sh2$, r%, k%, cnt%)
- Application.Volatile
- Set d = CreateObject("Scripting.Dictionary")
- Set d1 = CreateObject("Scripting.Dictionary")
- i = Sheets(Sh1).Index
- Do Until i > Sheets(Sh2).Index
- With Sheets(i)
- For Each a In .Range(.Cells(k, 2), .Cells(k, 2).End(xlToRight))
- If .Cells(r, a.Column) = 1 Then d(a.Value) = ""
- Next
- End With
- i = i + 1
- Loop
- j = 1: p = 1
- Do
- Do Until Application.Small(d.keys, j + 1) - Application.Small(d.keys, j) <> 1
- p = p + 1: j = j + 1
- If j = d.Count Then Exit Do
- Loop
- d1(p) = d1(p) + 1: p = 1
- j = j + 1
- If j = d.Count Then d1(p) = d1(p) + 1: Exit Do
- Loop Until j > d.Count
- AllCount = d1(cnt)
- End Function
½Æ»s¥N½X |
|