I'm getting the following run time error on the following code in bold:
I have the cells formatted as "13:50" and have tried it as "hh:mm".
Any ideas?
Rich (BB code):
Sub Capitalise(rngToConvert As Range)
Dim rng As Range
For Each rng In rngToConvert
With rng
If Not .HasFormula Then .Value = UCase(.Value)
End With
Next rng
End Sub
Sub ConvertToTime(rngToConvert As Range)
Dim rng As Range
For Each rng In rngToConvert
rng.Value = Format(rng.Value, "00\:00")
Next rng
rngToConvert.NumberFormat = "HH:MM"
End Sub
I have the cells formatted as "13:50" and have tried it as "hh:mm".
Any ideas?