chazzerman01
Board Regular
- Joined
- Nov 18, 2019
- Messages
- 65
is it possible for a macro to run if the active cell value is different to the value above it
Fat Boy:Oooh - one more thing that's just occurred to me: The act of inserting a row will invoke the Change function, so the test needs to be that the target cell is the first column of the last row and the cell has a value.
VBA Code:Private Sub Worksheet_Change(ByVal Target As Range) 'Modified 1/8/2020 10:27:51 AM EST Dim tbl As ListObject Set tbl = ActiveSheet.ListObjects("Table6") If Not Application.Intersect(Target, tbl.ListRows(tbl.ListRows.Count).Range(1, 1)) Is Nothing and Target.Value<>"" Then Application.EnableEvents = False Call Resize_Me End If Application.EnableEvents = True End Sub
that worked thank you for your help both of you