bs0d
Well-known Member
- Joined
- Dec 29, 2006
- Messages
- 622
I'm trying to identify if a certain cell value changed in a table. Following examples found within the forum here, I'm only able to identify if the change occurs in a specific column. How can I adjust to a specific cell within the table?
I want to execute additional code if it's the first cell in the second column of my table.
I want to execute additional code if it's the first cell in the second column of my table.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count <> 1 Then Exit Sub
If Not Intersect(Target, Range("MyTable[MyColumnName]")) Is Nothing Then
On Error GoTo CleanUp
Application.EnableEvents = False
Msgbox "Success"
Else
On Error GoTo CleanUp
Application.EnableEvents = False
End If
CleanUp:
Application.EnableEvents = True
End Sub