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.
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.
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]
I would like it to cut and paste to sheet 2. On e it is complete I no longer want it in sheet 1
What will be the contents of column H?
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?"
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.
I would like to have it with the first option, as long as the cell is not empty.
Thanks!
I hope this is the last questionWill the data in column H be typed in or selected from a dropdown?
the information in column H will be typed
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
I tried it and for some reason nothing happened. Is there something I could be doing wrong?
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.
I keep getting Run-time error '9': Subscript out of range when I type something in column H and hit enter
Can you tell me the name of the destination sheet?
Sheet 1 is named "Customer Response Needed" sheet 2 is named "Completed Issues." Sheet 2 is the destination sheet.
Thanks
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
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
Ok so I figured it out and the code worked! Thanks so much for your help.
Am glad it worked. I will mark your thread as solved.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks