- ©«¤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
|
¥»©«³Ì«á¥Ñ luhpro ©ó 2013-11-6 22:21 ½s¿è
¦^´_ 1# ui123
°²³] :
E2=5000 (¤W¬É)
F2=4500 (¤U¬É)
G2=5 (¶¡¶Z)- Sub nn()
- Dim lTop&, lBtm&, lStep&, lRow&
-
- lTop = [E2]
- lBtm = [F2]
- lStep = [G2]
- lRow = 1
- Do While Cells(lRow, 1) <> ""
- With Cells(lRow, 1)
- Select Case .Value
- Case Is > lTop
- .Offset(, 1) = lTop & "¥H¤W"
- Case Is < lBtm
- .Offset(, 1) = lBtm & "¥H¤U"
- Case Else
- .Offset(, 1) = Int(.Value / lStep) * lStep
- End Select
- lRow = lRow + 1
- End With
- Loop
- End Sub
½Æ»s¥N½X |
|