Sub removeDecimals() Dim lnumber As Double Dim lResult As Long Dim rng As Range For Each rng In Selection rng.Value = Int(rng) rng.NumberFormat = "0" Next rng End Sub
VBA Macro Code to Remove Decimals from Numbers in Excel
This code will simply help you to remove all the decimals from the numbers from the selected range.