¥»©«³Ì«á¥Ñ ziv976688 ©ó 2021-10-11 05:55 ½s¿è
°Ñ¦Òªþ¥ó :
TEST_1011.rar (248.88 KB)
Sheets("Sheet1")ªºC2¡GAY21§ï¦¨¥Ø«eªº®æ¦¡~
½Ð°Ý¡G¤U¦C¬õ¦â¦rÃCªºµ{¦¡½Xn¦p¦ó×¥¿¡H
§Ú¸Õ§ï³\¤[Á`¬O¸õ®t1¦C
'=================================¦C137
.Range("c2:ay21").ClearContents
Crr = .Range("c2:ay9"): Arr = .Range("c37:ay" & R): n = 0
cR = Array("", 1, 2, 3, 6, 7, 8) '¦C140
For ci = 1 To UBound(cR) + 2: For cj = 1 To UBound(Crr, 2)
For ai = ci To UBound(Arr) Step 17
If Arr(ai, cj) = "" Then GoTo 97
Crr(ci, cj) = Crr(ci, cj) + Arr(ai, cj)
97: Next ai: n = 0
Next cj: Next ci
.[c2].Resize(UBound(Crr), UBound(Crr, 2)) = Crr
Crr = .Range("c13:ay20"): cR = Array("", 1, 2, 3, 6, 7, 8) '¦C149
For ci = 1 To UBound(cR) + 2: For cj = 1 To UBound(Crr, 2)
For ai = ci To UBound(Arr) Step 17
If Arr(ai, cj) = "" Then GoTo 98
n = n + 1: Crr(ci, cj) = n
98: Next ai: n = 0
Next cj: Next ci
.[c13].Resize(UBound(Crr), UBound(Crr, 2)) = Crr
¥H¤W Àµ½Ð½ç±Ð¡I ÁÂÁ¡I
|