i'm trying to round named range cells to 3 decimal places to ensure files are not to big.
Named range: "Pod", 1435 rows by 48 column's = 68880 cells
The code below takes 35.75 seconds to run.
Question can it be done faster ?
Regards Bernie
Named range: "Pod", 1435 rows by 48 column's = 68880 cells
The code below takes 35.75 seconds to run.
Question can it be done faster ?
Regards Bernie
VBA Code:
Sub Rounding()
'Timer***************************************************
Application.ScreenUpdating = False
Dim secs1 As Single
Dim secs2 As Single
secs1 = Timer()
Sheets("Capstudy").Select
Dim cell As Object
' Change to 3 decimal places
For Each cell In Range("Pod")
If IsNumeric(cell) Then
cell.Value = WorksheetFunction.Round(cell.Value, 3) ' SETS TO 3 DECIMAL PLACES
End If
Next cell
Range("A2").Select
Application.CutCopyMode = False
' End of code to be timed
secs2 = Timer()
Worksheets("Capstudy").Range("D5").Value = secs2 - secs1
Application.ScreenUpdating = True
End Sub