LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Find Maximum value in a range via macro

I think this should do it

j = worksheetfunction.max(range("A6:A50"))

Names("LINE").RefersToRange.value = j


swatsp0p wrote:
I am trying to find, in a macro, the maximum value in the range A6:A50 on
sheet 2 as value 'J'. I then want to place that value in the cell named
"Line" as such:
Range("LINE").Value = J.

Any ideas on how to go about this. I can't seem to find a 'maximum' object
and the 'xlmaximum' doesn't seem to fit the circumstance.

Thanks in advance,

Bruce
--
The older I get, the better I used to be.


 
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
MACRO range find last row Helmut Excel Programming 1 August 3rd 06 11:37 AM
HELP TO FIND MAXIMUM VALUE JE McGimpsey Excel Programming 2 April 22nd 06 08:15 AM
find maximum Frank Drost Excel Discussion (Misc queries) 7 January 18th 06 02:23 AM
Find and select maximum value in a range Mcneilius[_9_] Excel Programming 3 September 18th 05 02:01 PM
Find row number of maximum value CGeorges Excel Programming 2 February 2nd 04 08:51 PM


All times are GMT +1. The time now is 08:16 PM.

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

About Us

"It's about Microsoft Excel"