Notifications
Clear all

Maior valor em uma coluna

3 Posts
1 Usuários
0 Reactions
810 Visualizações
(@fernandofernandes)
Posts: 43750
Illustrious Member
Topic starter
 

Olá a todos !!!
Preciso de um codigo que retorne o maior valor em uma coluna...

 
Postado : 02/01/2012 7:39 am
(@fernandofernandes)
Posts: 43750
Illustrious Member
Topic starter
 


Sub Macro1()

Dim rng As Range

Set rng = Range("A:A")

m = Application.WorksheetFunction.Max(rng)

End Sub

 
Postado : 02/01/2012 7:49 am
(@fernandofernandes)
Posts: 43750
Illustrious Member
Topic starter
 

Vlw Edson Funcionou perfect!!!

 
Postado : 02/01/2012 8:20 am