I have an excel sheet where i have written code so that certin range of cells are always CAPS. I have also added a button to clear ranges of cells once the form has been saved so that it is ready to fill it out again without having to open up a new template.
The range that has the uppercase code launches the debugger and i have to open up a new template for it to work the second time around.
Any ideas how to fix? The line highlighted in red is the one that needs debugging.
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Intersect(Target, Range("B3:E8")) Is Nothing Then Exit Sub
Application.EnableEvents = False
Target = UCase(Target)
Application.EnableEvents = True
End Sub
The range that has the uppercase code launches the debugger and i have to open up a new template for it to work the second time around.
Any ideas how to fix? The line highlighted in red is the one that needs debugging.
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Intersect(Target, Range("B3:E8")) Is Nothing Then Exit Sub
Application.EnableEvents = False
Target = UCase(Target)
Application.EnableEvents = True
End Sub