I am entering times into ms excel with the aid of VBA
my VBA string is:
Private Sub Worksheet_Change(ByVal Target As Range)
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 Sub
I have entered all of the times already and I am trying to copy paste the time values into the sheet that VBA is set for....but it won't let me.
It gives me an error of "Run-time error "13", type mismatch.
my VBA string is:
Private Sub Worksheet_Change(ByVal Target As Range)
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 Sub
I have entered all of the times already and I am trying to copy paste the time values into the sheet that VBA is set for....but it won't let me.
It gives me an error of "Run-time error "13", type mismatch.