Range

  • Thread starter Thread starter Ed
  • Start date Start date
E

Ed

How do I code a " Range" of cells that are not in order?

I tried to get a min in a group of 4 scattered cells with numerical
values using:

Application.Min(Range("C4","C7","C11","C14"))

with no success.

What code would I use get the min of those 4 cells?

Thanks,


Ed English
 
Sub mincells()
MsgBox Application.Min(Range("g1,g3,g5,g9"))
End Sub
 

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