ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ²Î­p«ü©w°Ï°ì²Ö¿n1¼Æ¦¸¦h­¶°ÝÃD(°ÝÃDªþ¥ó¤w§ó·s)

¦^´_ 10# Hsieh


    ·PÁÂHsieh ¤j¤j¥Î¤ß¤Î­@¤ßªº¨ó§U,¸g­pºâ«á²Ö­p¼Æ¦¸µL»~,
¦ý§Ú¶×¤J¸ê®Æ«áµo²{,Á`½s¸¹168¸¹,­È¦pªG¥X²{1²Ö­p¸ê®Æ·|¥X²{¿ù»~
(¦pªþ¥ó©Ò¥Ü)   ½ÐHsieh ¤j¤j¦AÀ°¦£¤@¤U¡K..ÁÂÁÂ

1000823.rar (124.86 KB)

TOP

¦^´_ 11# jeff5424
  1. Function AllCount(Sh1$, Sh2$, r%, k%, cnt%)
  2. Application.Volatile
  3. Set d = CreateObject("Scripting.Dictionary")
  4. Set d1 = CreateObject("Scripting.Dictionary")
  5. i = Sheets(Sh1).Index
  6. Do Until i > Sheets(Sh2).Index
  7. With Sheets(i)
  8.    For Each a In .Range(.Cells(k, 2), .Cells(k, 2).End(xlToRight))
  9.      If .Cells(r, a.Column) = 1 Then d(a.Value) = ""
  10.    Next
  11. End With
  12. i = i + 1
  13. Loop
  14. j = 1: p = 1
  15. Do
  16. Do Until Application.Small(d.keys, j + 1) - Application.Small(d.keys, j) <> 1
  17.      p = p + 1: j = j + 1
  18.      If j = d.Count Then Exit Do
  19. Loop
  20. d1(p) = d1(p) + 1: p = 1
  21. j = j + 1
  22. If j = d.Count Then d1(p) = d1(p) + 1: Exit Do
  23. Loop Until j > d.Count
  24. AllCount = d1(cnt)
  25. End Function
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ jeff5424 ©ó 2011-8-23 21:36 ½s¿è

¦^´_ 10# Hsieh


    ·PÁÂHsieh ¤j¤j¦h¦¸¨ó§U,¸g­pºâ«á²Ö­p¼Æ¦¸µL»~,
§Ú¶×¤J2002~2011¸ê®Æ,¥þ³¡ok.....
³Ì«á«D±`«D±`·PÁ§Aªº¨ó§U...ÁÂÁÂ

TOP

        ÀR«ä¦Û¦b : ­×¦æ­nô½t­×¤ß¡AÂǨƽm¤ß¡AÀH³B¾i¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD