For it = 1 To UBound(aa)
If aa(it, 1) = inx Then
For i = 1 To UBound(bb) '執行計劃為主
If aa(it, 4) & aa(it, 5) & aa(it, 6) & lc = bb(i, 2) & bb(i, 3) & bb(i, 4) & bb(i, 13) Or bb(i, 13) = "L1B" Then
If bb(i, 1) = " 繳庫" And bb(i, 13) = "L1A" Then
For t = 1 To 14
arr(i, t) = bb(i, t)
Next
z = 8
For z = 8 To col
arr(i, 7 + z) = aa(it, z)
Next
it = UBound(aa)
Else
For tt = 1 To coll
arr(i, tt) = bb(i, tt)
Next
it = UBound(aa)
End If
End If
Next
End If
Next