Macro Help - Export Template Data with Multiple Sections into New Workbook

coach_veto

New Member
Joined
Jan 26, 2016
Messages
15
Hi guys,

I have a blank template that contains many rows for data. Whenever someone fills out the template, there can be any different number of rows filled out.

I am trying to write a macro that, when clicked, will know which rows are filled out with data and which are not, taking only the populated rows and exporting that information into a new workbook.

The challenge I see is that there are 3 sections in my template, so the code would have to know where to start, go down the rows until it hits blank, then go to the second section and do the same.

A possible solution is maybe a function where the code finds the name of the section ("Section 1"), then does a loop down the rows until it hits a blank, then looks for the next name ("Section 2") so on and so forth.

All thoughts and suggestions are appreciated!

Thanks!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,214,650
Messages
6,120,734
Members
448,987
Latest member
marion_davis

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