Hey community,
i use following formula to convert time to numbers.
But for some reason it is working wrong, instead of converting it replace most of cells with column name. ( column name is HOUR )
Can anyone tell me why i get this result?
i use following formula to convert time to numbers.
Code:
[COLOR=#333333]Sub Convert()[/COLOR]
[COLOR=#333333]With Worksheets("DATA").Columns(10)[/COLOR]
[COLOR=#333333].NumberFormat = "0"[/COLOR]
[COLOR=#333333].Value = .Value[/COLOR]
[COLOR=#333333]End With[/COLOR]
[COLOR=#333333]End Sub
[/COLOR]
But for some reason it is working wrong, instead of converting it replace most of cells with column name. ( column name is HOUR )
Can anyone tell me why i get this result?
Last edited: