Sub highlightMaxValue() Dim rng As Range For Each rng In Selection If rng = WorksheetFunction.Max(Selection) Then 'rng.Style = "Good" rng.Interior.ColorIndex = 3 End If Next rng End Sub
京公网安备 11010502049817号