ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¦p¦ó¦Û°Ê¤ñ¹ï¼Æ¦r±a¥X¼Ð·Ç­È

¥»©«³Ì«á¥Ñ hugh0620 ©ó 2012-4-3 09:19 ½s¿è

¦^´_ 1# luke


   ¥Î¤@­Ó³Ì²³æªº¤è¦¡¨Ó¼g[if]
  1. Sub ex()
  2. For j = 2 To 4 Step 2    '¦C¼Æ,¸ê®Æ­n¶]²Ä2&4¦C
  3.      For i = 1 To 10          'Äæ¦ì±qA¨ìJ
  4.            If 30.5 < Cells(j, i) And Cells(j, i) <= 40 Then
  5.                Cells(j + 1, i) = 40    '¸ê®Æ©ñ¦b²Ä3&5¦C
  6.            ElseIf 25.5 < Cells(j, i) And Cells(j, i) <= 30.5 Then
  7.               Cells(j + 1, i) = 30
  8.            ElseIf 20.5 < Cells(j, i) And Cells(j, i) <= 25.5 Then
  9.               Cells(j + 1, i) = 25
  10.            ElseIf 16.5 < Cells(j, i) And Cells(j, i) <= 20.5 Then
  11.               Cells(j + 1, i) = 20
  12.            ElseIf 12.1 < Cells(j, i) And Cells(j, i) <= 16.5 Then
  13.               Cells(j + 1, i) = 16
  14.            ElseIf 10.1 < Cells(j, i) And Cells(j, i) <= 12.1 Then
  15.               Cells(j + 1, i) = 12
  16.            ElseIf 8.1 < Cells(j, i) And Cells(j, i) <= 10.1 Then
  17.               Cells(j + 1, i) = 10
  18.            ElseIf 6.1 < Cells(j, i) And Cells(j, i) <= 8.1 Then
  19.               Cells(j + 1, i) = 8
  20.            ElseIf 4.1 < Cells(j, i) And Cells(j, i) <= 6.1 Then
  21.               Cells(j + 1, i) = 6
  22.            ElseIf 2# < Cells(j, i) And Cells(j, i) <= 4.1 Then
  23.               Cells(j + 1, i) = 4
  24.            ElseIf 0 < Cells(j, i) And Cells(j, i) <= 2.1 Then
  25.               Cells(j + 1, i) = 2
  26.            End If
  27.      Next
  28. Next
  29. End Sub
½Æ»s¥N½X
¾Ç²ß¤~¯à´£¤É¦Û¤v

TOP

        ÀR«ä¦Û¦b : §g¤l¦p¤ô¡AÀH¤è´N¶ê¡AµL³B¤£¦Û¦b¡C
ªð¦^¦Cªí ¤W¤@¥DÃD