+ Reply to Thread
Results 1 to 19 of 19

need help moving info from one sheet to another sheet based on criteria

Hybrid View

MariahD24 need help moving info from... 12-18-2012, 08:10 PM
arlu1201 Re: need help moving info... 12-19-2012, 03:54 AM
MariahD24 Re: need help moving info... 12-19-2012, 04:02 AM
arlu1201 Re: need help moving info... 12-19-2012, 05:07 AM
MariahD24 Re: need help moving info... 12-19-2012, 08:55 AM
arlu1201 Re: need help moving info... 12-19-2012, 10:33 AM
MariahD24 Re: need help moving info... 12-19-2012, 11:22 AM
arlu1201 Re: need help moving info... 12-19-2012, 11:56 AM
MariahD24 Re: need help moving info... 12-19-2012, 03:01 PM
arlu1201 Re: need help moving info... 12-20-2012, 11:15 AM
MariahD24 Re: need help moving info... 12-20-2012, 10:27 PM
arlu1201 Re: need help moving info... 12-21-2012, 12:40 AM
MariahD24 Re: need help moving info... 12-21-2012, 10:05 AM
arlu1201 Re: need help moving info... 12-21-2012, 10:50 AM
MariahD24 Re: need help moving info... 12-22-2012, 09:51 AM
arlu1201 Re: need help moving info... 12-22-2012, 10:52 AM
MariahD24 Re: need help moving info... 12-22-2012, 09:07 PM
MariahD24 Re: need help moving info... 12-23-2012, 10:35 AM
arlu1201 Re: need help moving info... 12-24-2012, 03:20 AM
  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    need help moving info from one sheet to another sheet based on criteria

    I am trying to move the information from sheet 1 to sheet 2 once column H is completed. I have tried codes from similar questions but with no luck.

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

    Re: need help moving info from one sheet to another sheet based on criteria

    Do you want to retain the information in sheet1 or should it be cut pasted to sheet2?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    12-18-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: need help moving info from one sheet to another sheet based on criteria

    I would like it to cut and paste to sheet 2. On e it is complete I no longer want it in sheet 1

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

    Re: need help moving info from one sheet to another sheet based on criteria

    What will be the contents of column H?

  5. #5
    Registered User
    Join Date
    12-18-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: need help moving info from one sheet to another sheet based on criteria

    There are a few things it could be such as the words sent, completed, paid, etc. Can I set it up so if there are words in the column then it will read as completed and go to sheet 2 or does it have to be one specific word such as "completed?"

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

    Re: need help moving info from one sheet to another sheet based on criteria

    You can tell me which option you want? Either ways it can be coded. But the code will differ slightly. So just tell me which option you want - either as long as the cell is not empty it should go to sheet 2 or it should show as "completed" to go to sheet2.

  7. #7
    Registered User
    Join Date
    12-18-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: need help moving info from one sheet to another sheet based on criteria

    I would like to have it with the first option, as long as the cell is not empty.
    Thanks!

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

    Re: need help moving info from one sheet to another sheet based on criteria

    I hope this is the last question Will the data in column H be typed in or selected from a dropdown?

  9. #9
    Registered User
    Join Date
    12-18-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: need help moving info from one sheet to another sheet based on criteria

    the information in column H will be typed

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

    Re: need help moving info from one sheet to another sheet based on criteria

    Right click on the sheet and select View Code. Paste this code in the code window -
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Column = 8 Then
            Rows(Target.Row & ":" & Target.Row).Copy Worksheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
            Rows(Target.Row & ":" & Target.Row).ClearContents
        End If
    End Sub

  11. #11
    Registered User
    Join Date
    12-18-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: need help moving info from one sheet to another sheet based on criteria

    I tried it and for some reason nothing happened. Is there something I could be doing wrong?

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

    Re: need help moving info from one sheet to another sheet based on criteria

    As soon as column H will be filled up in the row, you will see that the row has vanished from Sheet1 and is in Sheet2.

  13. #13
    Registered User
    Join Date
    12-18-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: need help moving info from one sheet to another sheet based on criteria

    I keep getting Run-time error '9': Subscript out of range when I type something in column H and hit enter

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

    Re: need help moving info from one sheet to another sheet based on criteria

    Can you tell me the name of the destination sheet?

  15. #15
    Registered User
    Join Date
    12-18-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: need help moving info from one sheet to another sheet based on criteria

    Sheet 1 is named "Customer Response Needed" sheet 2 is named "Completed Issues." Sheet 2 is the destination sheet.

    Thanks

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

    Re: need help moving info from one sheet to another sheet based on criteria

    Change your code to
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Column = 8 Then
            Rows(Target.Row & ":" & Target.Row).Copy Worksheets("Completed Issues").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
            Rows(Target.Row & ":" & Target.Row).ClearContents
        End If
    End Sub

  17. #17
    Registered User
    Join Date
    12-18-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: need help moving info from one sheet to another sheet based on criteria

    I don't understand. I right click on "Customer Response Needed" Tab, click view code, paste the code you gave me and still nothing happens. Am I missing a crucial step?

    Mariah

  18. #18
    Registered User
    Join Date
    12-18-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: need help moving info from one sheet to another sheet based on criteria

    Ok so I figured it out and the code worked! Thanks so much for your help.

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

    Re: need help moving info from one sheet to another sheet based on criteria

    Am glad it worked. I will mark your thread as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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