excel - Maximum of Multiple Named Ranges -
i having lot of trouble one. want replicate value in vba:
=max(max(named_range1),max(named_range2),max(named_range3))
i having impossible time trying done.
if 3 ranges in same sheet then:
sub maxmax() dim r range set r = union(range(named_range1), range(named_range2), range(named_range3)) msgbox application.worksheetfunction.max(r) end sub
Comments
Post a Comment