Private Sub Worksheet_Change(ByVal target As Range)
If Not Intersect(target, Union(Range("C:D"), Range("E5:E10005"))) Is Nothing Then
Dim r As Range
For Each r In target.Cells
If Not Application.Intersect(target, Range("C:D")) Is Nothing Then
With r
If Not .HasFormula Then
Application.EnableEvents = False
.Value = UCase(.Value)
Application.EnableEvents = True
End If
End With
End If
If Not (Application.Intersect(r, Range("E5:E10005")) Is Nothing) Then
With r
If Not .HasFormula Then
Application.EnableEvents = False
.Value = "0:" & Application.Ceiling(Round(.Value * 60, 0), 15)
Application.EnableEvents = True
End If
End With
End If
Next r
End If
End Sub
Bookmarks