Hallo,
Tried to use the below code from the book on page 136 but it doesn't work. I use excel 2010.
Tried to use the below code from the book on page 136 but it doesn't work. I use excel 2010.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)Dim ThisColumn As Integer
Dim UserInput As String, NewInput As String
ThisColumn = Target.Column
If ThisColumn < 3 Then
If Target.Count > 1 Then Exit Sub
If Len(Target) = 1 Then Exit Sub
UserInput = Target.Value
If UserInput > 1 Then
NewInput = Left(UserInput, Len(UserInput) - 2) & ":" & Right(UserInput, 2)
Application.EnableEvents = False
Target = NewInput
Application.EnableEvents = True
End If
End If
End Sub