Loop 20 columns Help!

  • Thread starter Thread starter Michael168
  • Start date Start date
M

Michael168

Hello!VBA expert,

Can someone tell me how to loop in VBA?

I want to loop through 20 columns in order to get the smallest an
biggest value.

Thanks
Michae
 
If i understand you correct then
You can use a function.

Sub test()
MsgBox Application.WorksheetFunction.Max(Range("A1:d100"))
MsgBox Application.WorksheetFunction.Min(Range("A1:d100"))
End Sub
 
Hi!Ron de Bruin,

Thanks for the tips and you understand correctly what I meant.

"Little tips solve the problems."

Regards,
Michael.
 

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