- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¦]¬°§Aªºªþ¥ó¬Ý¤£¥X§A¯u¥¿n§ìªº¸ê®Æ¬O¨º¤@¦C? (Priority1¡BPriority2¡BPriority3 ÁÙ¬O Vendor?)
¬Gµ{¦¡¤¤ª½±µ·í§@§A¬On§ì Title ¨º¤@¦C, §A¥unÅܧó§ì¸ê®Æªº¦C¸¹§Y¥i§ì¨ú¬Û¹ïÀ³¦C¤¤ªº¤Wz¸ê®Æ¤F.
¥H³oÓ¨Ò¤l¨Ó»¡¨ä¹ê¥un¥ý¨ú±o Max¡BMin »P Middle ªº¶}ÀYÄ渹,
¦A¨Ì¾Úªí®æ³°Äò§ì¨úÓ§O¸ê®ÆªºÓ¼Æ·f°t°_¨Ó´N¥i¥H¤F.
Sub main()
Dim iMax%, iMin%, iMid%, iColumn%, iRow%
Dim iNum%, iI%
Dim vDatabase, vOutput
Set vDatabase = Sheets("DATABASE")
Set vOutput = Sheets("OUTPUT")
iMax = 182
iColumn = iMax
iRow = 70
With vDatabase
While Left(.Cells(1, iColumn), 3) = "Max"
iColumn = iColumn + 1
Wend
iMin = iColumn
While Left(.Cells(1, iColumn), 3) = "Min"
iColumn = iColumn + 1
Wend
iMid = iColumn
End With
iColumn = 3
With vOutput
For iNum = 9 To 12
For iI = 0 To .Cells(2, iNum) - 1
.Cells(iRow, iColumn) = vDatabase.Cells(1, iMax)
iMax = iMax + 1
iColumn = iColumn + 1
Next iI
For iI = 0 To .Cells(3, iNum) - 1
.Cells(iRow, iColumn) = vDatabase.Cells(1, iMin)
iMin = iMin + 1
iColumn = iColumn + 1
Next iI
For iI = 0 To .Cells(4, iNum) - 1
.Cells(iRow, iColumn) = vDatabase.Cells(1, iMid)
iMid = iMid + 1
iColumn = iColumn + 1
Next iI
Next iNum
End With
End Sub |
|