VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim ws As Worksheet
Dim tableRange As Range
' Set the worksheet
Set ws = Me ' Refers to the current worksheet
' Get the range of the table
Set tableRange = ws.ListObjects("ABC").Range
' Check if the changed range
If Not Intersect(Target, tableRange) Is Nothing Then
SplitUniqueValues
End If
End Sub
I have the code posted here that checks if any changes have been made to a table named "ABC, if so, call the "SplitUniqueValues" function. For context, "SplitUniqueValues" converts the table "ABC" to an array and pastes all unique values into a cell. Anyway, this all works just fine until I decide to delete a table column, for some reason, the cell doesn't update with the changes, as in the deleted entries from that column remain in the cell. I assume it doesn't track the "Delete" > "Columns" as a change?
Anyone know what's the issue here?
Ty