Hi there,
as far as you didn't already know: The use of the function ROUND is essentially different in both VB and VBA. VB's round function performs the rounding mathematically, VBA performs it mercantilistic.
Example:
VB : Round(1.125,2) = 1.12 !!
VB : Round(1.126,2) = 1.13
VB : Round(1.135,2) = 1.14
VBA: Round(1.125,2) = 1.13 !!
VBA: Round(1.126,2) = 1.13
VBA: Round(1.135,2) = 1.14
So in VB you better use the Format function for the proper rounding.
as far as you didn't already know: The use of the function ROUND is essentially different in both VB and VBA. VB's round function performs the rounding mathematically, VBA performs it mercantilistic.
Example:
VB : Round(1.125,2) = 1.12 !!
VB : Round(1.126,2) = 1.13
VB : Round(1.135,2) = 1.14
VBA: Round(1.125,2) = 1.13 !!
VBA: Round(1.126,2) = 1.13
VBA: Round(1.135,2) = 1.14
So in VB you better use the Format function for the proper rounding.