Hi Guys,

I'm trying to understand a code from work and I can't get it. I copied only a part of the code here so please don't run it. Also, I have manual inputs in columns L and M (nodes labels such as 1, 2 and 2,3) and section labels on column N (such as BarFT3, BarFT4 etc):


Dim nn As Integer
Dim ne As Integer
Dim nudo As Range
Dim element_label As Range

Set nudo = Worksheets("A").Range("l8:m107")
Set element_label = Worksheets("A").Range("n8:n107")
ne = element_label.Count 
nn = 0
    For n = 1 To ne
        For j = 1 To 2
            If nudo(n, j) > nn Then nn = nudo(n, j)
        Next j
    Next n
What is this loop doing? I just get the first For loop: goes through every lable on colum N (from 1 to ne) but then what?
What is happening to range nudo(n,j)? How works this ">" sign between nudo(n.j) and nn?

Thanks guys