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

[µo°Ý] ¥i¥¿±`Åã¥Ü°õ¦æµ²ªG¡A¥i¬O·|¥X²{°»¿ù

[µo°Ý] ¥i¥¿±`Åã¥Ü°õ¦æµ²ªG¡A¥i¬O·|¥X²{°»¿ù

¥»©«³Ì«á¥Ñ jesscc ©ó 2011-4-18 23:44 ½s¿è
  1. Sub NewShBtn_Click()
  2. If OptionButton1 = True Then
  3. Dim i As Integer, rng As Range, y As WorksheetFunction
  4. Set y = WorksheetFunction
  5. Range("B3:E8000").Font.ColorIndex = 0
  6. For i = 2 To 5
  7. Set rng = Cells(3, i).Resize(8000)
  8. Cells(rng.Find(y.Max(rng), lookat:=xlWhole).Row, i).Font.ColorIndex = 3
  9. Cells(rng.Find(y.Min(rng), lookat:=xlWhole).Row, i).Font.ColorIndex = 10
  10. Next
  11. End If
  12. ...
  13. ...
½Æ»s¥N½X
³o¬q¥N½X¥i¥H¥¿±`°õ¦æ¥Xµ²ªG¡A¥i¬O¦b²Ä¤K¦æ·|¥X²{°»¿ù:

°õ¦æ¶¥¬q¿ù»~'91':
¨S¦³³]©wª«¥óÅܼƩÎWith°Ï¶ôÅܼÆ

¬O­þ¸Ì¦³°ÝÃD¶Ü?
Jess

¬JµMrng¬O¦b´`Àô¤¤ªºÅܶq
²Ä8¦æ³o¼Ë§Y¥i
rng.Find(y.Max(rng), lookat:=xlWhole).Font.ColorIndex = 3
¥X²{°»¿ùµøµ¡À³¸Ó¬O¬Y¦¸rng½d³ò¨S¦³¼Æ¦r

TOP

³o¦¸¤S¥X²{

°õ¦æ¶¥¬q¿ù»~'1004':
µLªk¨ú±oÃþ§O WorksheetFunction ªºMaxÄÝ©Ê

·|¤£·|¬OMax¨ç¼ÆµLªk¹ïªÅ­ÈªºCells°µ³B²z?
Jess

TOP

§Ú¤w¸g½T©w°ÝÃD©Ò¦b¡A¦p¦P¤j¤j»¡ªº¡A¬Y¦¸rng½d³ò¨S¦³¼Æ¦r©Î¬O«D¼Æ¦r¡BªÅ­Èªº®É­Ô´N·|²£¥Í³oºØ¿ù»~¡A¦³¨S¦³¿ìªkÅýMAX¨ç¼Æ©¿²¤³oºØ±¡§Î©O?
Jess

TOP

¦^´_ 4# jesscc
For i = 2 To 5
    Set rng = Cells(3, i).Resize(8000)
    If y.Max(rng) Then
        Cells(rng.Find(y.Max(rng), lookat:=xlWhole).Row, i).Font.ColorIndex = 3
        Cells(rng.Find(y.Min(rng), lookat:=xlWhole).Row, i).Font.ColorIndex = 10
    End If
Next

TOP

¥i¥H¥¿±`°õ¦æ¤F¡AÁÂÁ¤j¤j¡C
¥[¤Jªº³o¬q:
If y.Max(rng) Then
¥Nªí¤°»ò·N«ä©O?
³Ì­«­nªº¤@¥y¡A¥i¬O«o³Ì·P¨ü¤£¨ì¥¦ªº­«­n©Ê!
Jess

TOP

  1. Range("E3:E3000").Value = Range("E3:E3000").Value
  2. If OptionButton1 = True Then
  3. Dim i As Integer, rng As Range, y As WorksheetFunction
  4. Range("B3:E3000").Font.ColorIndex = 0
  5. Set y = WorksheetFunction
  6. Range("B3:E3000").Font.ColorIndex = 0
  7. For i = 2 To 5
  8. Set rng = Cells(3, i).Resize(3000)
  9. Cells(rng.Find(y.Max(rng), lookat:=xlWhole).Row, i).Font.ColorIndex = 3
  10. Cells(rng.Find(y.Min(rng), lookat:=xlWhole).Row, i).Font.ColorIndex = 10
  11. Next
  12. End If
½Æ»s¥N½X
­è­è¤S¸Õ¤F¤@¦¸¡Aµo²{ÁÙ¬O·|¥X¿ù¡A°®¯Ü§Ú´N§â Cells ùتº¤½¦¡¡Aª½±µÂର¼Æ­È¡A³o¼Ë´NOk¤F¡C
Jess

TOP

        ÀR«ä¦Û¦b : ¦Û¤v®`¦Û¤v¡A²ö¹L©ó¶ÃµoµÊ®ð¡C
ªð¦^¦Cªí ¤W¤@¥DÃD