Hello,
Here is my code which is meant to trigger on change
upon triggering, it is suppose to run another function referenced in the code (not pasting due to relavance)
I've got the code in the "Management Sheet" module
unfortunately, it isn't working.. I'd appreciate you guys's help on this
Thanks in advance
Code Below
Here is my code which is meant to trigger on change
upon triggering, it is suppose to run another function referenced in the code (not pasting due to relavance)
I've got the code in the "Management Sheet" module
unfortunately, it isn't working.. I'd appreciate you guys's help on this
Thanks in advance
Code Below
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim v
Dim reason_ws As Worksheet: Set reason_ws = ThisWorkbook.Worksheets("Reason List")
Dim manage_ws As Worksheet: Set manage_ws = ThisWorkbook.Worksheets("Management Sheet")
Dim watchingRng As Range: Set watchingRng = reason_ws.Range("C2:C" & reason_ws.Cells(Rows.Count, 3).End(xlUp).Row)
If Intersect(Target, watchingRng) Is Nothing Then Exit Sub
v = getUniqueArray(watchingRng)
If IsArray(v) Then
manage_ws.Range("a2").Resize(UBound(v)) = v
End If
End Sub