Hello guy,
I'm suppose to find the PEAK_POWER (max number) from a list of unknown number of range of unknown numbers and let it store in a cell B17,
So far I got this, which works:
Sub PEAK_POWER()
Range("B17").Value = WorksheetFunction.Max(Range("F3:F34"))
End Sub
but Assume that I don't know the range of F3 to F34, How can I adjust that code so that when i do run it somewhere else it would work, assuming we don't know the range.
Thanks!
I'm suppose to find the PEAK_POWER (max number) from a list of unknown number of range of unknown numbers and let it store in a cell B17,
So far I got this, which works:
Sub PEAK_POWER()
Range("B17").Value = WorksheetFunction.Max(Range("F3:F34"))
End Sub
but Assume that I don't know the range of F3 to F34, How can I adjust that code so that when i do run it somewhere else it would work, assuming we don't know the range.
Thanks!