Can someone help me to be able to use an index number instead of a letter range?
See code below:
Function Integer
Dim value As Integer
Can someone help me to be able to use an index number instead of a letter range?
See code below:
Function Integer
Dim value As Integer
You do not need to loop :)
Is this what you want?
Sub Sample()
Dim Rng As Range
Set Rng = Columns(2)
'~~> This will give you the row number of the max value
'~~> =MATCH(MAX(B:B),B:B,0)
MsgBox Evaluate("MATCH(MAX(" & Rng.Address & ")," & Rng.Address & ",0)")
'~~> OR
MyVariable = Evaluate("MATCH(MAX(" & Rng.Address & ")," & Rng.Address & ",0)")
MsgBox MyVariable
End Sub