higherUpper = IIf(upper1 >= upper2, upper1, upper2)
higherUpper = Application.Max(upper2,upper1)
?
Seems a little less convoluted and easier to read.