Copy Range of Active row to next sheet

RJProfiteer

Board Regular
Joined
Aug 14, 2002
Messages
85
Hello,
I would like the vba code to move the range columns A thru I of the row of the active cell(but not the whole row) on Sheet1 to Sheet SOLD on the next available row within rows 1thru 80 (same columns) and then delete the row of the active cell on sheet 1.

On SOLD sheet there are column totals after row 80 so those rows woudl not be empty.
Also on SOLD sheet the columns after I contain formulas that are different for those columns on Sheet1 so cutting and pasting the row would not work.

I searched the forum and did not find the exact code needed.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try

Code:
Sub Cpy()
Dim NR As Long
NR = Sheets("SOLD").Range("A1").End(xlDown).Offset(1).Row
Range("A" & ActiveCell.Row & ":I" & ActiveCell.Row).Copy
Sheets("SOLD").Range("A" & NR).PasteSpecial Paste:=xlPasteValues
ActiveCell.EntireRow.Delete
End Sub
 
Upvote 0
almost... that copies it to the same row on SOLD each time. How could the code be modifed to copy onto the next available row or empty row?
 
Upvote 0
Hmm. Doesn't do that for me but I guess it depends how SOLD is set up.

Try

Rich (BB code):
Sub Cpy()
Dim NR As Long
NR = Sheets("SOLD").Range("A80").End(xlUp).Offset(1).Row
Range("A" & ActiveCell.Row & ":I" & ActiveCell.Row).Copy
Sheets("SOLD").Range("A" & NR).PasteSpecial Paste:=xlPasteValues
ActiveCell.EntireRow.Delete
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,250
Messages
6,171,036
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top