have an excel file with this vba:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not (Application.Intersect(Target, Range("A1:A1000")) _
Is Nothing) Then
With Target
If Not .HasFormula Then
Application.EnableEvents = False
.Value = UCase(.Value)
Application.EnableEvents = True
End If
End With
End If
End Sub
What this does, when something is inserted on those cells, it converts it to caps. Everything works just fine, just one small problem... the file is used every day by several people, so the inserted data is deleted every day, several times. what happens is if I delete one cell at a time it runs smoothly, if I delete several cells at the same time I get a run time error '13'.
how can i correct this?