+ Reply to Thread
Results 1 to 7 of 7

Copy row from Sheet 1 to Sheet 2 when data entered in cell F

  1. #1
    Forum Contributor
    Join Date
    12-27-2007
    Posts
    106

    Copy row from Sheet 1 to Sheet 2 when data entered in cell F

    Dear All

    I have Worksheet 1, with columns A to E.

    I would like a row to be copied to Worksheet 2, as soon as cell F in Worksheet 1 is populated.

    Also the row to be deleted from Worksheet 1.

    So, as soon as F1 in worksheet 1 is populated and enter button pressed, row A1:F1 will be copied to the next empty row in worksheet 2, while being deleted from worksheet 1.

    So eventually all rows in worksheet 1 will be deleted and rows in worksheet 2 will be populated.

    All help will be greatly appreciated.
    Last edited by rylo; 08-17-2009 at 09:40 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Copy row from Sheet 1 to Sheet 2 when data entered in cell F

    Hi

    Right click on the sheet tab, select view code, and paste in

    Please Login or Register  to view this content.
    Now if you put something into a single cell in column F, it will move the data to the second sheet in the workbook.

    HTH

    rylo

  3. #3
    Forum Contributor
    Join Date
    12-27-2007
    Posts
    106

    Re: Copy row from Sheet 1 to Sheet 2 when data entered in cell F

    thanks that worked really well.

    All solved - but cannot edit the post to read solved
    Last edited by tony0710; 08-16-2009 at 08:57 AM. Reason: solved

  4. #4
    Forum Contributor
    Join Date
    12-27-2007
    Posts
    106

    Re: Copy row from Sheet 1 to Sheet 2 when data entered in cell F

    Hi

    Thanks to all who helped and gave the following code:

    Please Login or Register  to view this content.
    Basically this code moved a whole row from sheet 1 to sheet 2, when user inputs into cell F of sheet 1.

    Well now I have a sheet from a to aa, so how do I edit code to do the same - i.e.copy row from sheet 1 to sheet 2, if cell "o" = "cash exp". cell "o" will automatically get the info from a vlookup function.But not delete the row in sheet 1.

    regards

  5. #5
    Registered User
    Join Date
    01-12-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Copy row from Sheet 1 to Sheet 2 when data entered in cell F

    Quote Originally Posted by tony0710 View Post
    Hi

    Thanks to all who helped and gave the following code:

    Please Login or Register  to view this content.
    Basically this code moved a whole row from sheet 1 to sheet 2, when user inputs into cell F of sheet 1.

    Well now I have a sheet from a to aa, so how do I edit code to do the same - i.e.copy row from sheet 1 to sheet 2, if cell "o" = "cash exp". cell "o" will automatically get the info from a vlookup function.But not delete the row in sheet 1.

    regards
    If Target.Column = 6<<<<<Change this number to the number that coinsides with the letter "O". Then everything in the row will be removed and copied onto the sheet of choice

  6. #6
    Registered User
    Join Date
    10-12-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Copy row from Sheet 1 to Sheet 2 when data entered in cell F

    I'm looking to do the same. However I do not want any rows to be deleted. And instead of the row copying in a different sheet, I would like the row to be copied in the same sheet but below starting at row 208 and below, for example. I am working with a price list and the bottom is an purchase order. If customer is reviewing price list they can make a selection same selection will be itemized below.

    Can you help me edit the above code, please?
    Last edited by fabjay; 10-12-2011 at 02:26 PM.

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Copy row from Sheet 1 to Sheet 2 when data entered in cell F

    Fabjay,

    It will be advisable to create your own thread with this question. You can provide the link to this old thread as a reference. This to avoid any infractions from the moderators.

+ Reply to Thread

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