¦U¦ì¥ý¶i§A¦n!!¤p§Ì¦³¤@ºÃ°Ý·Q½Ð±Ð!!
¤p§Ì¦³¨âÓ¤À¶n¶×¨ì¦P¤@ªí³æ¤W
A¤À¶10Ó¶µ¥Ø
B¤À¶¦³5Ó¶µ¥Ø
¶×¨ì¤À¶®Én¯à¥ý±qA¤À¶¶}©l¶×¤J«á±¦A¶KB¤À¶
·íB¤À¶¶µ¥Ø¤j©óA¤À¶¶µ¥Ø ¤@¼Ë¥ý¶KA¦A¶KB¤À¶
¦ý¤p§Ì¼g¤£¥X»yªk!!³Â·Ð½Ð«ü±Ð
!!«ÂI¦bSelect Case Value ¥H¤Uªº»yªk!!
«ô°U¤F...
Sub D03¶×¤JÓ¤HºÞ¨îªí()
Dim A(1000), B(1000), C(1000), D(1000), E(1000), A1(1000), B1(1000), C1(1000), D1(1000), E1(1000)
Sheets("D03¥Í²£p¹ºªí").Select
X = 5
Do While Cells(X, 1) <> ""
A(X) = Cells(X, 12)
B(X) = Cells(X, 13)
C(X) = Cells(X, 1)
D(X) = Cells(X, 2)
E(X) = Cells(X, 14)
X = X + 1
Loop
Sheets("³³²¡¹q¤ì¥Í²£p¹ºªí").Select
X1 = 5
Do While Cells(X1, 1) <> ""
A1(X1) = Cells(X1, 12)
B1(X1) = Cells(X1, 13)
C1(X1) = Cells(X1, 1)
D1(X1) = Cells(X1, 2)
E1(X1) = Cells(X1, 14)
X1 = X1 + 1
Loop
Sheets("¶½u-Ó¤HºÞ»sªí§ï").Select
If X > X1 Then
Y = X * 6
Else
Y = X1 * 6
End If
X3 = 5
X4 = 5
For Y1 = 1 To Y
Cells(Y1, 1) = ""
Cells(Y1 + 1, 1) = "¶½uÓ¤H¤À°tºÞ¨îªí"
Cells(Y1 + 2, 1) = "§@·~ªÌ"
Cells(Y1 + 2, 2) = "¤À°t½X"
Cells(Y1 + 2, 3) = "»s¥O³æ¸¹"
Cells(Y1 + 2, 4) = "²£«~²£¸¹"
Cells(Y1 + 2, 5) = "¤À°t¶q"
Cells(Y1 + 2, 6) = "¥Í²£¤é"
Cells(Y1 + 2, 7) = "¥Í²£¶q"
Cells(Y1 + 2, 8) = "°²¤é"
Cells(Y1 + 2, 9) = "¤£¨}1"
Cells(Y1 + 2, 10) = "¤£¨}2"
Cells(Y1 + 2, 11) = "¤£¨}3"
Cells(Y1 + 2, 12) = "¤£¨}4"
Cells(Y1 + 2, 13) = "¤£¨}5"
Cells(Y1 + 2, 14) = "¤£¨}6"
Cells(Y1 + 2, 15) = "¥ØÀËû"
Cells(Y1 + 2, 16) = "µn¿ý"
Select Case Value
Case X <= X1
If Y1 <= (X + X1) Then
Cells(Y1 + 3, 1) = A(X3)
Cells(Y1 + 3, 2) = B(X3)
Cells(Y1 + 3, 3) = C(X3)
Cells(Y1 + 3, 4) = D(X3)
Cells(Y1 + 3, 5) = E(X3)
X3 = X3 + 1
Else
Cells(Y1 + 3, 1) = A1(X4)
Cells(Y1 + 3, 2) = B1(X4)
Cells(Y1 + 3, 3) = C1(X4)
Cells(Y1 + 3, 4) = D1(X4)
Cells(Y1 + 3, 5) = E1(X4)
X4 = X4 + 1
End If
Case X < X1
If Y1 <= (X1 + X) - 6 Then
Cells(Y1 + 3, 1) = A(X3)
Cells(Y1 + 3, 2) = B(X3)
Cells(Y1 + 3, 3) = C(X3)
Cells(Y1 + 3, 4) = D(X3)
Cells(Y1 + 3, 5) = E(X3)
X3 = X3 + 1
Else
Cells(Y1 + 3, 1) = A1(X4)
Cells(Y1 + 3, 2) = B1(X4)
Cells(Y1 + 3, 3) = C1(X4)
Cells(Y1 + 3, 4) = D1(X4)
Cells(Y1 + 3, 5) = E1(X4)
X4 = X4 + 1
End If
End Select
Y1 = Y1 + 5
Next
Y = 2
Do While Cells(Y, 1) <> ""
Y = Y + 1
Loop
End Sub |