still learning
Well-known Member
- Joined
- Jan 15, 2010
- Messages
- 784
- Office Version
- 365
- Platform
- Windows
Hi,
Way back in 2020 I got this from this site (Thank you) after asking how to have an event macro change a cell to proper case after typing in a text.
I’m finally getting around to asking about it
Why do I need
Application.EnableEvents = False
and
Application.EnableEvents = True
AND
Why doing the macro without them closes the program?
mike
Way back in 2020 I got this from this site (Thank you) after asking how to have an event macro change a cell to proper case after typing in a text.
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 3 Then
Application.EnableEvents = False
Target.Value = StrConv(Target.Value, vbProperCase)
Application.EnableEvents = True
End If
End Sub
Why do I need
Application.EnableEvents = False
and
Application.EnableEvents = True
AND
Why doing the macro without them closes the program?
mike