Hi,
I need to calculate the minimal value from all the cells that are adjacent to the active cell in vb code
I tried using the min function like this:
Dim min As Double
min = WorksheetFunction.min(ActiveCell.Offset([-1,1], [-1,1]).Value)
but I got a runtime error of type mismatch
how do I define the argument for the min function as a dynamic range of cells?
I need to calculate the minimal value from all the cells that are adjacent to the active cell in vb code
I tried using the min function like this:
Dim min As Double
min = WorksheetFunction.min(ActiveCell.Offset([-1,1], [-1,1]).Value)
but I got a runtime error of type mismatch
how do I define the argument for the min function as a dynamic range of cells?