VBA Macro to Copy Paste and Autofill

VBA_Hunter

New Member
Joined
Jan 3, 2018
Messages
1
I have to go through excel files with multiple tables within one sheet, one after another, and copy and paste the name and unique ID of the table then paste, autofill to the side of it.

To lay it out more clearly, this is what I do manually. Copy the name and id of the first table in A3 and B3, then paste it into I5, and autofill down to I34. Then, repeat the process for the next table starting with the name and id in row 36 and pasting and autofill into I38 with same range dimensions as previous table. And repeat for the rest of the tables having the same dimensions until I get to the end.

How can I do it to automate this process?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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