PJ,
Something has to separate the hrs min and sec, unless you'll enter fixed
character counts (below). If you'd rather use a non-Shift character, an
event sub can do the substitution. The following sub macro, in the sheet
module, will allow you to type a semicolon instead of a colon, and will
switch them to colons. It's set up to only convert column A
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Hold
Dim i As Integer
Hold = ""
If Not Intersect(Target, Range("A:A")) Is Nothing Then
For i = 1 To Len(Target)
If Mid(Target, i, 1) <> ";" Then
Hold = Hold & Mid(Target, i, 1)
Else
Hold = Hold & ":"
End If
Next i
Application.EnableEvents = False
Target.Value = Hold
Application.EnableEvents = True
End If
End Sub
It's barebones. It doesn't handle non-numeric stuff (it still converts the
semicolons).
Another possible solution is to enter fixed characters counts, like 010203,
and have them converted by a similar event sub to 01:02:03. Post back, if
you're willing to use a macro.
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------
pj said:
In Excel - how do you enter times without having to type the colon each
time