Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Cell U23 has both text and time in it. What I was hoping was that the code
below would change the text to all caps and the number to a time format. Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ErrHandler: Application.EnableEvents = False If Target.Count = 1 And Not Application.Intersect( _ Me.Range("U23"), Target) Is Nothing Then If IsNumeric(Target.Value) And InStr(Target.Value, ":") = 0 _ And Len(Target.Value) < 5 Then Target.Value = Format$(Target.Value, "'00\:00") Else Target.Value = UCase$(Target.Value) End If End If ErrHandler: Application.EnableEvents = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Mixed 3D Charts | Charts and Charting in Excel | |||
format painter wont copy mixed font colors from one cell to next | Excel Discussion (Misc queries) | |||
Mixed Cell | Excel Worksheet Functions | |||
A mixed request | Excel Programming | |||
A mixed bag of questions | Excel Programming |