Copy to next available open row of worksheet

Ark68

Well-known Member
Joined
Mar 23, 2004
Messages
4,538
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Using a macro, how would I copy rows from one worksheet, to the next available row of a second worksheet? The last open row will be volatile on sheet 2.

Jenn
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
'To find the last row of data in column A of Sheet2, use:

LastRow = Sheets("Sheet2").Range("A65536").End(xlUp).Row

'If you're using Excel 2007, change the 65536 to 1048576.

'To copy 5 columns of data from Sheet1 to Sheet2 assuming the source row on Sheet1 is 12:

For ColNo = 1 to 5
Sheets("Sheet2").Cells(LastRow + 1, ColNo) = Sheets("Sheet1").Cells(12, ColNo)
Next ColNo

There might be more efficient ways to accomplish this, but that's my 2 cents.
 
Upvote 0

Forum statistics

Threads
1,203,488
Messages
6,055,716
Members
444,811
Latest member
NotJack

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