Hi
Hope to have some advice on this problem. In worksheet "Work" I have a table named "tbl_work" which contains named columns "colA", "colB", "colC".... I want something to happen only when changes occur in "colB".
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = True
On Error GoTo Exitsub
Set tbl = Worksheets("Work").ListObjects("tbl_work")
If Target.Address = tbl.ListColumns("colB").Address Then
"something to happen"
End if
Application.EnableEvents = True
Exitsub:
Application.EnableEvents = True
End Sub
It has however no effect.
Thanks
chx77
Hope to have some advice on this problem. In worksheet "Work" I have a table named "tbl_work" which contains named columns "colA", "colB", "colC".... I want something to happen only when changes occur in "colB".
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = True
On Error GoTo Exitsub
Set tbl = Worksheets("Work").ListObjects("tbl_work")
If Target.Address = tbl.ListColumns("colB").Address Then
"something to happen"
End if
Application.EnableEvents = True
Exitsub:
Application.EnableEvents = True
End Sub
It has however no effect.
Thanks
chx77