Answers for "excel vba arrondir"

VBA
0

excel vba arrondir

Function RoundTo(pNumber As Long, pFactor As Long)
    RoundTo = Round(pNumber / pFactor) * pFactor 
End Function
' ---------------------------------------------------------------
Sub TestMe()
    Debug.Print RoundTo(2543, 10)    ' => 2540
    Debug.Print RoundTo(2546, 10)    ' => 2550
End Sub
Posted by: Guest on February-04-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language