Hi,
Your help is greatly appreciated.
I'm working on something more complex but I need to find this result first to help me progress.
I have a simple for loop, running 24 combinations from 2 other subs. Each x result will return a value between 1-50 (tracknumber (which is a function that returns said number)).
How do I extract the highest/max result from this and with which 'x' it came from?
Public Sub longest()
Dim x As Integer
For x = 1 To 24
sub1
sub2
msgbox tracknumber
Next
End Sub
Your help is greatly appreciated.
I'm working on something more complex but I need to find this result first to help me progress.
I have a simple for loop, running 24 combinations from 2 other subs. Each x result will return a value between 1-50 (tracknumber (which is a function that returns said number)).
How do I extract the highest/max result from this and with which 'x' it came from?
Public Sub longest()
Dim x As Integer
For x = 1 To 24
sub1
sub2
msgbox tracknumber
Next
End Sub