In WorksheetSelectionChange I have:
CloseWBbyName Macro is in the same workbook, and it works as expected when tested by itself.
Problem must be with the trigger part: trying to have code run if Cell to the right of ActiveCell contains "ABC BC KLM"
VBA Code:
If ActiveCell.Offset(0, 1).Value = "ABC BC KLM" Then
Call CloseWBbyName
End If
CloseWBbyName Macro is in the same workbook, and it works as expected when tested by itself.
Problem must be with the trigger part: trying to have code run if Cell to the right of ActiveCell contains "ABC BC KLM"