Originally Posted by
mandukes
1. Your code seems to define elements of nagVal (earlier declared as negVal) as negative values of A
Ans. It was a typing mistake .
2. Are you wanting to check if negVal(?) has negative elements
Ans. YES
3.If so, does your "Max" of a negative number mean closer to zero or further from zero (i.e. max in the negative direction)?
Ans. further from zero
Getting max value is not a big deal.I can get it through
MaxNeg = Excel.workbookfunction.Min(negVal)
Here's a modification of your code. You can look at this (run it on a blank worksheet, it generates its own test data) and see if you find anything useful from it.
Bookmarks