Copy and paste range to another sheet's unused row

_CROW

New Member
Joined
Jun 20, 2013
Messages
21
I have a data connection that pulls production data into an excel sheet and then I use that data to create an hourly production board. My IT department is URGING me to reduce the size of the connection. In an effort to do so, my thought is to pull less lines of data with each refresh, but I need a way to keep the data from the previous refresh. I currently use the macro shown below to refresh my connection (18,000 rows) and save the workbook every 15 minutes. The 18,000 rows gives me 24 hours worth of production data. What I'd like to do is to pull, say 1,000 lines every 15 minutes, but before doing that refresh, I would copy and paste the existing 1,000 lines to the first unused row on another sheet. The data is on sheet "T3DATA", columns A:R. Any help would be greatly appreciated.

I'd also like this macro to run automatically when this workbook is opened.

Sub SaveWb()

ThisWorkbook.RefreshAll
ThisWorkbook.Save
Application.OnTime Now + TimeValue("00:15:00"), "SaveWb"
End Sub
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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