Excel Vba Arrondir

[Solved] Excel Vba Arrondir | Vb - Code Explorer | yomemimo.com
Question : excel vba arrondir

Answered by : vastemonde

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

Source : | Last Update : Thu, 11 Feb 21

Answers related to excel vba arrondir

Code Explorer Popular Question For Vb