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

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -