Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-25-2019, 10:24 AM
NoSparks NoSparks is offline ashamed to having to ask Windows 7 64bit ashamed to having to ask Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
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
 



Other Forums: Access Forums

All times are GMT -7. The time now is 09:09 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft