The following macro changes any lower case text entered in a cell to upper case; however, I'm getting a runtime error '13' on the .Value line when pressing the Delete key to remove cell contents. How do I resolve this error?
Option Explicit
------------------
Private Sub Worksheet_Change(ByVal Target As Range)
With Target
If Not .HasFormula Then
.Value = UCase(.Value)
End If
End With
End Sub
Bookmarks