**VBA Roundup | How to Use Roundup in VBA with examples?**
https://www.educba.com/vba-roundup/

Step 3: In the variable B store the rounded up value of A with roundup function is as follows and use msgbox function to display the result, Code: Sub Sample2() Dim A, B As Double Dim C As Integer A = InputBox("Enter a Value", "Value in Decimals") C = InputBox("Enter number of digits to be rounded up", "Enter greater than zero") B = Application.WorksheetFunction.RoundUp(A, C) MsgBox B End Sub

**DA:** 61 **PA:** 92 **MOZ Rank:** 39