Help needed: Copy cells down x amount of times based on search results

Mattrick2oo3

New Member
Joined
Dec 12, 2016
Messages
5
I'm currently working on a spreadsheet that will import data from an existing spreadsheet into a new template file. I have the code written to import and format all the cells but need help with copying cell contents. I need to write a macro that will read the contents of Column "G" for "4 X" and copy the information in Column "A" and Column "D" down to the next 4 rows. I need it to loop through the entire spreadsheet until it can no longer find the specified value in Column "G".

See below.

Char Num
Bub Num
Req
1
1
4X
200
200
200
200

<tbody>
</tbody>










Need "1" in both Column copied down to the next 4 rows.

Thanks,

-Matt
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,214,945
Messages
6,122,395
Members
449,081
Latest member
JAMES KECULAH

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