回復 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作者: jesscc 時間: 2011-4-22 23:08
可以正常執行了,謝謝大大。
加入的這段:
If y.Max(rng) Then
代表什麼意思呢?
最重要的一句,可是卻最感受不到它的重要性!作者: jesscc 時間: 2011-4-23 00:02
Range("E3:E3000").Value = Range("E3:E3000").Value
If OptionButton1 = True Then
Dim i As Integer, rng As Range, y As WorksheetFunction