mcro coding

  • Thread starter Thread starter flyer
  • Start date Start date
F

flyer

how do i select through using macros the highest ranging
numbers with 2 specific numbers?
Example
$400 $600 how do i get the macro to select the
$700 $800 highest number in each row? (Row= --> )
$500 $200
 
Hi
in a macro to get the row numbers try

dim rng
set rng = activesheet.range("A1:A1000")
with application.worksheetfunction
msgbox .match(.max(rng),rng,0)
end with
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top