Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Range Question

Hi all I have some data that I have sorted then subtotal. Is there way I can
search all cells for the highest number then have the higest number cell
change colour?

Many thanks

I have been trying to think way to do this but not sure what would be best
so want some advice on best option...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Range Question


here's one way, there may be a better way. just change the ranges to your needs.

Sub highlight_largest()
Dim rng As Range
Dim rngfound As Range
Dim ival As Double
Set rng = Range("D14:f16")
ival = WorksheetFunction.Max(rng)
With rng
Set rngfound = .Find(ival, LookIn:=xlValues)
Range(rngfound.Address).Interior.ColorIndex = 3
End With
End Sub
--


Gary


"millwalll" wrote in message
...
Hi all I have some data that I have sorted then subtotal. Is there way I can
search all cells for the highest number then have the higest number cell
change colour?

Many thanks

I have been trying to think way to do this but not sure what would be best
so want some advice on best option...



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 477
Default Range Question

A conditional Formatting solution would include (sample range used)

=B1=MAX($B$1:$B$10)

FWIW,


"millwalll" wrote:

Hi all I have some data that I have sorted then subtotal. Is there way I can
search all cells for the highest number then have the higest number cell
change colour?

Many thanks

I have been trying to think way to do this but not sure what would be best
so want some advice on best option...

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
Range Question / error 1004: method Range of object Worksheet has failed Paul Excel Programming 3 April 7th 05 02:56 PM
Range question mnewnam[_2_] Excel Programming 0 October 28th 04 07:28 PM
Range question strataguru[_19_] Excel Programming 2 September 25th 04 12:57 AM
Range question in VB rohnds Excel Programming 3 July 14th 04 09:51 AM
Range.Formula and Range question using Excel Automation [email protected] Excel Programming 0 September 19th 03 04:53 AM


All times are GMT +1. The time now is 11:04 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"