Excel 2007
Create a command button to copy data in a range then find the last row in another sheet and paste.
Sheet “PROJECT TRACKING” I placed a command button within “L6”cell. Each time the button is clicked, I would like the data copied from column “C” through Column “K” in row 6 and paste it in “CHANGE ORDER” sheet find last row and past, the paste range will be the same columns “C” through “K”
With each click I would like the data be transferred as described above.
In the “PROJECT TRACKING” sheet I would like to have this happen for each row 6 through 304 individually, do I need a command button in column “L” for each of the rows to transfer data from that row.
I have this VBA code now in this work book that works great, I referenced it along with the a excel book to help me write a VBA code as mentioned above but I get stuck.
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("AV")) Is Nothing Then Exit Sub
If Target.Value = vbNullString Then Exit Sub
Dim ws As Worksheet: Set ws = Sheets("PROJECT TRACKING")
If Target.Value = "AWARDED" Then
Range(Cells(Target.Row, "C"), Cells(Target.Row, "I")).Copy ws.Range("C" & Rows.Count).End(3)(2)
End If
End Sub
Create a command button to copy data in a range then find the last row in another sheet and paste.
Sheet “PROJECT TRACKING” I placed a command button within “L6”cell. Each time the button is clicked, I would like the data copied from column “C” through Column “K” in row 6 and paste it in “CHANGE ORDER” sheet find last row and past, the paste range will be the same columns “C” through “K”
With each click I would like the data be transferred as described above.
In the “PROJECT TRACKING” sheet I would like to have this happen for each row 6 through 304 individually, do I need a command button in column “L” for each of the rows to transfer data from that row.
I have this VBA code now in this work book that works great, I referenced it along with the a excel book to help me write a VBA code as mentioned above but I get stuck.
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Columns("AV")) Is Nothing Then Exit Sub
If Target.Value = vbNullString Then Exit Sub
Dim ws As Worksheet: Set ws = Sheets("PROJECT TRACKING")
If Target.Value = "AWARDED" Then
Range(Cells(Target.Row, "C"), Cells(Target.Row, "I")).Copy ws.Range("C" & Rows.Count).End(3)(2)
End If
End Sub