BrainDiseasee
New Member
- Joined
- Aug 30, 2023
- Messages
- 22
- Office Version
- 365
- Platform
- Windows
Hello, i have a code that is displaying the last changed cell of a range. It works for a few tests but then randomly will freeze up my workbook. Any help would be great, also im looking to make this apply to all worksheets in the workbook, if anyone has any direction on that it would be helpful as i am lost on how to make a privae sub work as a public sub/function.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
Set rng = Range("A1:A10")
Application.EnableEvents = False
If Not Intersect(Target, Range("E5:E15")) Is Nothing Then
Range("J39") = Target.Address
Application.EnableEvents = True
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
Set rng = Range("A1:A10")
Application.EnableEvents = False
If Not Intersect(Target, Range("E5:E15")) Is Nothing Then
Range("J39") = Target.Address
Application.EnableEvents = True
End If
End Sub