I'm looking for a code that will convert the format of cells for large amount of cells with numbers. The procedure I apply is that I write the number "1" to an empty cell, copy it and then multiply the whole selection, where numbers are stored as text. That is really fast compared to the automatic "Convert to Number" suggestion which offers Excel (which takes ages for a Selection of 1000+ cells). I wrote this macro (it works, but is not as fast as the above mentioned procedure):
Option Explicit
Sub nasobeni()
Dim cell As Range
Dim one As Integer
one = 1
For Each cell In Selection
cell.value = cell.value * one
Next
Application.CutCopyMode = False
Selection.NumberFormat = "0"
End Sub
Has anybody some suggestion, which would speed up this process? Thanks