+ Reply to Thread
Results 1 to 3 of 3

Plz HELP:Have Macro that moves rows to other sheet but need it to delete later row

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    Plz HELP:Have Macro that moves rows to other sheet but need it to delete later row

    Hello,

    I currently have a macro that auto shifts a row from "Currrent Tasks" to "Completed Tasks" when ever "Complete" is selected in row "I." The data is pulled in a timely manner but now where the row in "Current Tasks" once was is no just a blank unformatted row. Is there anyway to tweak the macro so that is can A: Delete the formerly filled row OR B: Keep the formatting in the Row. Bellow you can find the macro. Any help would be much appreciated!

    Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    ' Code goes in the Worksheet specific module
    Dim rng As Range
    ' Set Target Range
    Set rng = Target.Parent.Range("I5:I200")
    ' Only look at single cell changes
    If Target.Count > 1 Then Exit Sub
    ' Only look at that range
    If Intersect(Target, rng) Is Nothing Then Exit Sub
    ' Action if Condition(s) are met
    Select Case Target.Text
    Case "Complete"
    Target.EntireRow.Cut Sheets("Completed Tasks").Cells(Rows.Count, "A").End(xlUp).Offset(1)
    Case Is = ""
    Target.EntireRow.Cut Sheets("Current Tasks").Cells(Rows.Count, "A").End(xlUp).Offset(1)




    End Select
    End Sub

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Plz HELP:Have Macro that moves rows to other sheet but need it to delete later row

    Please use code tags when posting. Forum Rule No. 3

  3. #3
    Registered User
    Join Date
    07-25-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Plz HELP:Have Macro that moves rows to other sheet but need it to delete later row

    Very sorry about that.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. vba macro that moves rows of information conditionally
    By angad008 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-17-2013, 03:57 PM
  2. [SOLVED] Excel vba or macro to delete selected rows in a protected sheet
    By ROHAN999 in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 04-21-2013, 02:29 PM
  3. [SOLVED] Need help with Macro that moves row to another sheet
    By audioboxer in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-23-2013, 05:34 PM
  4. macro to delete rows that exist in sheet 1 from sheet2
    By chriz74 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-28-2012, 06:33 PM
  5. Delete rows from a protected sheet (write macro)
    By Matt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2005, 10:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1