Find next Empty Cell in a Column and Paste Data

thunderfoot

Board Regular
Joined
May 28, 2004
Messages
229
I have a table in EXCEL that is being updated from the Internet every 5 seconds or so.

The table being updated is Range A5:R15 (Named Range "DataUpdate"), and has a Timestamp within the data.

Underneath I want to copy the data from A5:R15 to a larger table (same Column Formats), Range A40:R10000, every time the data in the top table is updated, so possibly every 5 seconds.

Therefore I want a macro routine that will :-
a) Operate when the Timestamp changes.
b) Copy the data from the Top table to the next available empty cell in the Range A40:A10000 (or Column A), thus the 1st copy will be from A5:R15 to A40:R50, the next copy is from A5:R15 to A51:R61 etc. etc. etc.
c) Is easily stoppable.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
dim x as range
set x=range("a40")

first set copy to range("a40")
subsequent each set copy to
range("a40").end(xldown).offset(1,0)

you can write a macro forthis.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,252
Members
449,075
Latest member
staticfluids

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