User form for selecting and copying columns to another worksheet

Gusto

New Member
Joined
Jan 18, 2007
Messages
2
Greetings to all you señor Excels!

I have an Excel sheet that has approximately 25 columns and a continuously growing number of rows as it serves as a simple database.

What I'm trying to achieve is to have a Form Control button which upon pressing would pop up a window (user form) that would have all the column headings listed, and the user could easily mark with check boxes or similar all the columns he or she would want to include to the report.

The macro would then paste the selected columns to an already created worksheet for printout. In case it matters, filters are being used to sort data in the database, so at the time the user selects the columns for the report, there usually is a bunch of hidden rows in the worksheet (that are not to be included to the report).

I would really appreciate it if someone would be kind enough to help me with this case? I'm fairly inexperienced with VBA, but I know some basics and I am able to do some minor modifications to the code. I tried searching for similar cases from this forum but to no avail.
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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