hm, first, try using only a number, say - 1 - instead of "up", as it in the referred function is a variant, and it only tests for ANY existence, ie. if that argument/variable is empty, it rounds down, otherwise up. The Up word itself is irrelevant. The function rounds up if there is ANY value sent in that "place" of the function.
BUT: in your case: if all you need is to round UP, change the following
FROM:
Code:
If IsMissing(varUp) Then
' round down
dblTemp = lngTemp
Else
' round up
dblTemp = lngTemp + 1
End If
TO
Code:
If IsMissing(varUp) Then
' round up
dblTemp = lngTemp + 1
Else
' round down
dblTemp = lngTemp
End If
This way, you do NOT have to include anything , as long as you do NOT pass on the actual variant/variable, it rounds UP as default instead of down.
D.