That's what I dont understand. It works for the lRowMax, but not for the lRowMin.
iMax = Application.WorksheetFunction.Max(rR)
lRowMax = rR.Find(iMax, rR.Cells(rR.Rows.Count)).Row
Set rE = Range(Cells(2, lCol), Cells(lRowMax, lCol))
iMin = Application.WorksheetFunction.Min(rE)
lRowMin =...
I get Runtime error '91'
Object Variable or with Block variable not set.
Anyway, why are you starting your search from the last row ?
I don't know exactly what you mean....how am i looking at the last row?
Thanks.
Hey, I have been working on this macro to analyze data. And I keep getting an error when i try to find lRowMin. It's driving me nuts, so any help would be greatly appreciated.
Thanks a lot.
Sub carney()
Dim iMax As Double, iMin As Double, lRowMax As Long, lRowMin As Long, lCol As Long
Dim...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.