Copy, next blank row?

R

Richard

Private Sub CommandButton1_Click()
Worksheets("Schedule").Range("d1,a3:a100,b3:B100,d3:d100").ClearContents
Worksheets("Sent to Assembly").Range("a3:a100,b3:b100").ClearContents
End Sub

I'm trying to send the results from these to sheets to another sheet named
"Parts Sent to Assembly" then clearing these two sheets. Then the next time
these two sheets are cleared those results are sent to the next blank row on
the "Parts Sent to Assembly" and so on. Some kind of row count, next blank
row. Thanks in advance. I'm really having a hard time with this!!
 
F

FSt1

hi
test this out...(before you use it on live data)
Private Sub CommandButton1_Click()
Worksheets("Sheet1").Range("A3:B100,D3:D100").Copy
Worksheets("sheet2").Range("a65000").End(xlUp).Offset(1, 0).PasteSpecial
xlPasteAll
Worksheets("sheet1").Range("a3:a100,b3:B100,d3:d100").ClearContents
End Sub

regards
FSt1
 
R

Richard

Thank you so much!!! Thats exactly what I needed, I get an error with the
xlPasteAll, so I took it out, do I need it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top