Public Function arrsup(nb As Variant, nbdec As Integer) As Variant
arrsup = -Int(-nb * 10 ^ nbdec) / 10 ^ nbdec
End Function
ppelable ainsi (exemple) : Dim nb As Double nb = 12.1111 MsgBox arrsup(nb, 0)
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionà condition d'ajouter les références idoines
dim toto As New Excel.Application dim titi As WorksheetFunction dim ret As double Set titi = toto.WorksheetFunction ret = titi.Roudnup( ..ton-nombre.,.nb-decimales..) puis zigouiller par set titi = nothing set toto = nothing
Dim xl As Object, ff As Object Set xl = CreateObject("Excel.Application") Set ff = xl.worksheetfunction MsgBox ff.RoundUp(111.11, 1)