Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 12-13-2017, 08:46 PM
NoSparks NoSparks is offline Advice on macro that moves rows across sheets Windows 7 64bit Advice on macro that moves rows across sheets 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

I have to admit I don't understand what's going on with that table on the "Open Tasks" sheet.
It's supposed to behave the same as the table on the "Triage" sheet, but for some reason it won't expand.

Try this for the change event
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    Dim nxtRow As ListRow

' Limit to a single cell change in column 5
If Target.Count > 1 Or Target.Column <> 5 Then Exit Sub
    
If UCase(Target.Value) = "YES" Then
    Application.EnableEvents = False
    Set nxtRow = Sheets("Open Tasks").ListObjects("Table2").ListRows.Add
    Intersect(Target.EntireRow, UsedRange).Copy
    nxtRow.Range.PasteSpecial xlPasteValues
    Target.EntireRow.Delete
    Application.EnableEvents = True
    Exit Sub
End If

End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Advice on macro that moves rows across sheets search multiple sheets and create list from found rows trevorc Excel Programming 1 01-05-2017 06:24 PM
Advice on macro that moves rows across sheets One macro to sort individual sheets in a workbook darbybrown Excel Programming 1 09-11-2016 12:51 PM
Advice on macro that moves rows across sheets Moves multiple rows from Sheet1 to Sheet2 khawajaanwar Excel Programming 2 09-09-2016 11:21 AM
A macro that moves the current paragraph up or down? New Daddy Word VBA 2 04-13-2014 02:25 PM
Advice on macro that moves rows across sheets creating macro for biffurcation in sheets according to data. Nirik Excel Programming 8 05-07-2011 05:11 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:59 AM.


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