View Single Post
 
Old 06-25-2019, 10:24 AM
NoSparks NoSparks is offline Windows 7 64bit Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

Maybe something like this ?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    'limit target to a single cell at a time
    If Target.Count > 1 Then Exit Sub
    'limit to specific column
    If Target.Column = 27 Then
        'don't do anything unless target contains something
        If Target.Value <> "" Then
            'prevent changes made by this sub from triggering itself
            Application.EnableEvents = False
            'insert below row of target
            Target.Offset(1).Resize(1, 12).Insert (xlShiftDown)
            're-enable events
            Application.EnableEvents = True
        End If
    End If
End Sub
Reply With Quote