Macro to remove certain columns depending on selected items

Xlbanana

New Member
Joined
Jul 31, 2014
Messages
1
Hello,
On a sheet (first_sheet), i have activex comboboxes on a grid that contains values of sheets/columns, so that for each sheet if YES is selected nothing happens, but when NO is selected, these columns must be removed automatically from these sheets right after their generation.
Now the logical order that the user should follow is:
1 - On the Sheet "first_sheet" the user should select whether or not certain columns are to be kept or removed on each of the defined sheets.
2 - Then on another sheet "macro_sheet", the user should click on the button that would create the sheets WITHOUT the columns.


Now the macro creating the sheets works, and i would like to add a script that removes those selected columns. Can someone help me resolve this?
Thanks in advance
 

Forum statistics

Threads
1,226,852
Messages
6,193,364
Members
453,792
Latest member
Vic001

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