Hello,
I am new to VBA. I know this may be a big ask but please can you explain in laymans language what this code is doing:
Private Sub Worksheet_Change(ByVal Target As Range) 'Prevents users from overwriting formatting
Application.ScreenUpdating = False
Application.EnableEvents = False
strText = Target.Value
Application.Undo
Target = strText
Application.EnableEvents = True
End Sub
Thank you for your time.
I am new to VBA. I know this may be a big ask but please can you explain in laymans language what this code is doing:
Private Sub Worksheet_Change(ByVal Target As Range) 'Prevents users from overwriting formatting
Application.ScreenUpdating = False
Application.EnableEvents = False
strText = Target.Value
Application.Undo
Target = strText
Application.EnableEvents = True
End Sub
Thank you for your time.