Highlight highest figures

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a macro I could use to find the highest figure in a column and make
it bold?

Thanks
 
If you really want a macro then try this worksheet code:-

Sub highlightmaximum()
Dim rcell As Range
Dim Myrange As Range
Dim maxval As Variant
Set Myrange = Range("A1:A100") '<Change to suit
maxval = Application.WorksheetFunction.Max(Myrange)
For Each rcell In Myrange
rcell.Interior.ColorIndex = xlNone
If rcell.Value <> "" Then
If rcell.Value = maxval Then
rcell.Interior.ColorIndex = 6
rcell.Font.Bold = True
End If
End If
Next
End Sub

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Conditional Formating: MAX & MIN 3
Vlookup Function 1
Highlight Highest number 8
Highlight Highest Amount 2
MAX in conditional formatting 2
Simple Formula Question 0
2nd highest value. 1
VBA help 5

Back
Top