Results 1 to 4 of 4

CODES: Move a Row from Sheet

Threaded View

  1. #1
    Registered User
    Join Date
    04-05-2012
    Location
    PERTH
    MS-Off Ver
    Excel 2007
    Posts
    2

    Smile CODES: Move a Row from Sheet

    Hi,

    I have a code to move a row from sheet 1 (On Hand) to sheet 2 (Completed) however when the row is transferred over it replace the one that was previously transferred over to sheet 2 instead of going to the next available row. This is my code:
    Private Sub Worksheet_Change(ByVal Target As Range)
      If Target.Column = 10 And Target.Cells.Count = 1 Then
        Target.EntireRow.Copy Destination:=Sheets(2).Cells(Rows.Count, 1).End(xlUp).Offset(1, 0)
        Target.EntireRow.Delete shift:=xlUp
      End If
    End Sub
    Can someone help me fix it so it put the information in the next available row on sheet 2.

    Thanks
    Last edited by arlu1201; 04-05-2012 at 03:01 AM. Reason: I put code tags. Please do so in future.

Thread Information

Users Browsing this Thread

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

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