If Format$(Pi, "#.##") <> 3.14 Then Return 85 Endif this test can be true only in country where decimal separator is "." in france ... the decimal separator is ","... then you compare a string to a float !! All the error i have are based on this problem.