Hi
I need to find the cell with minimum value in a row. I found a function for that on the Internet and it does work for a range like A1:B5 but it does not work for a single row. Here it is:
My code looks like this:Please Login or Register to view this content.
The line "Debug.Print MinAddress(rw)" causes a type mismatch error here "If cell = MinNum Then" in the MinAddress function. It doesn't happen when I put the whole range(rng variable) as the parameter. How to make it work for a row?Please Login or Register to view this content.
Example data in a row(some of the cells are empty):
Please Login or Register to view this content.
Bookmarks