One way:
Put this in the worksheet code module (right-click on the worksheet
tab, choose View Code, paste the code in the window that opens,
then click the XL icon on the toolbar to return to XL)
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Not Intersect(Range("A1"), Target) Is Nothing Then
Application.EnableEvents = False
With Target
.Value = TimeSerial(Int(.Value), _
(.Value - Int(.Value)) * 100, 0)
.NumberFormat = "[h]:mm"
End With
Application.EnableEvents = True
End If
End Sub
Since your example was somewhat ambigous, this assumes that you're
using the integer for hours and the two decimal places for minutes,
rather than hundredths of an hour.
Note the [h]:mm number format, which will not roll over hours over 24
Jim Lavery said:
Can anyone tell me how....If you enter 1.00 it can be converted to a time
format automatically 1:00.
Also if you want to add hours such as 10:00 plus 10:00 plus 10:00 it reads
30:00 instead of 06:00 (24 hour format)