Hello, I'm in need of some help. This script I'm using is not working and keep getting errors. Been working on this for days.
I'm trying to copy a row of data (B7:G7) and send this data to another row (B35:G35) in the same sheet. If (B35:G35) is already filled, I need it to move down to the next available row with no data in it so to (B36:G36) or (B37:G37) so and and so fourth.
I'm using a command button to move the data.
Thx for the assistance!!!
Private Sub CommandButton2_Click()
'Controller and Spares paste
Dim V_Product_Guide As Worksheet
Sheets("V_Product_Guide").Select
If Range("B35:G35") <> "" Then
Range("B7:G7").copy
Range("B35").End(xlDown).Select
r = Selection.Row
Cells(r + 1, 1).EntireRow.Insert
Range("B" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial Paste: =x1PasteValues
Else
End If
End Sub
I'm trying to copy a row of data (B7:G7) and send this data to another row (B35:G35) in the same sheet. If (B35:G35) is already filled, I need it to move down to the next available row with no data in it so to (B36:G36) or (B37:G37) so and and so fourth.
I'm using a command button to move the data.
Thx for the assistance!!!
Private Sub CommandButton2_Click()
'Controller and Spares paste
Dim V_Product_Guide As Worksheet
Sheets("V_Product_Guide").Select
If Range("B35:G35") <> "" Then
Range("B7:G7").copy
Range("B35").End(xlDown).Select
r = Selection.Row
Cells(r + 1, 1).EntireRow.Insert
Range("B" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial Paste: =x1PasteValues
Else
End If
End Sub