¦U¦ìVBA°ª¤â¤j®a¦n
¤p§Ì¦³¤@¨Æ·Q½Ð±Ð
¤p§Ì¼gªºVBAµ{¦¡¦p¤U
Sub ¥æ´Á()
Dim MO(100, 12)
Sheets("MO").Select
X = 2
Do While Cells(X, 1) <> ""
X = X + 1
Loop
For X1 = 2 To X
For Y1 = 1 To 12
MO(X1, Y1) = Cells(X1, Y1)
Next
Next
Cells(1, 15) = "§Æ±æ¥æ´Á"
For X1 = 2 To X - 1
If MO(X1, 12) > 0 Then
Cells(X1, 15) = ""
Else
For X2 = 2 To X - 1
Do While MO(X1, 12) + MO(X2, 10) < 0
If MO(X2, 4) = "¶i³f" Then
Cells(X1, 15) = MO(X2, 3) & ">>" & MO(X2, 6) & Chr(10)
End If
X2 = X2 + 1
Loop
Exit For
Next
End If
Next
End Sub
¤p§Ì·Qn¦b
Cells(X1, 15) = MO(X2, 3) & ">>" & MO(X2, 6) & Chr(10)
¦P¤@Àx¦s®æ¯à°÷Åã¥Ü¥X¦³pºâ¹Lªº ¤é´Á¸ò¼Æ¶q
¦ý«ç»ò§ï³£¥u¦³³Ì«á¤@µ§
½Ð°Ý¸Ó¦p¦óקï¤~¯àÅý
Cells(X1, 15) ¯à°÷Åã¥Ü¦h¸ê®Æ©O? |