Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
MACRO range find last row | Excel Programming | |||
HELP TO FIND MAXIMUM VALUE | Excel Programming | |||
find maximum | Excel Discussion (Misc queries) | |||
Find and select maximum value in a range | Excel Programming | |||
Find row number of maximum value | Excel Programming |