Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Highlight highest figures

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

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Highlight highest figures

Use conditional formatting.

See http://www.xldynamic.com/source/xld.CF.html#top3

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Mamabear" wrote in message
...
Is there a macro I could use to find the highest figure in a column and
make
it bold?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Highlight highest figures

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

"Mamabear" wrote:

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

Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
highlight the highest cell in a column exhub58 Excel Worksheet Functions 1 October 27th 09 02:55 AM
how do i highlight the ten highest numbers in a range? Help Wanted Excel Discussion (Misc queries) 3 May 5th 09 06:39 PM
Highlight highest / lowest number in a row [email protected] Excel Discussion (Misc queries) 3 April 1st 07 02:00 AM
Highlight highest numbers in a range. Shawn Excel Programming 1 March 20th 07 12:40 PM
looking up figures in a column and selecting next highest match [email protected] Excel Worksheet Functions 3 October 4th 05 01:21 AM


All times are GMT +1. The time now is 01:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"