Hi guys,
I'm new in this fórum, and I need a bit of help with my programming.
I'm trying to build a program in VBA that calculate maximum and minimum of a column of numbers.
I've tried some stuff but I didn't get it yet.
For example this: I need to know the max and the min in column C
A B C
01/01/11 1 1,237.0
01/01/11 2 1,083.2
01/01/11 3 917.0
01/01/11 4 880.8
01/01/11 5 886.2
01/01/11 6 894.8
01/01/11 7 697.0
01/01/11 8 740.9
01/01/11 9 830.4
Private Sub CommandButton1_Click()
Dim teste As Integer
WorksheetFunction.Max (Range("C1:C9"))
MsgBox teste
End Sub
And I have another problem beside this one, I also need to show the numbers that correpond a range of values. For instance, I need all the prices between 0€ and 10€, I need that the program shows me that cells.
I leave in attach my excel file.
I appreciate all your help,
Thanks
Daniel Duarte
Bookmarks