VBA code - Copy/Paste based on multiple dropdown menu

DarkSmile

Board Regular
Joined
Feb 22, 2021
Messages
90
Office Version
  1. 365
Platform
  1. Windows
Hello,

I need some help with VBA code, let me try explaining what I'm trying to achieve.

I have a multiple checkbox dropdown:
1661236294658.png


I would like to achieve the following:

When for example "ACS-002 Ind Lait" is checked go to sheet called "ACS-002" en copy everything from A3:B16
1661236407974.png


And paste it in sheet "Food" starting at A17

If multiple selected go to sheet X and copy X area, I don't mind specifying one by one which item is in which sheet.
And if multiple items are selected paste them underneath each other with always 2 rows in between each other.

The end result will look something like this :

1661236661759.png


If easier to use, I also have a sheet called "Placeholders" where I have a lookup formula that returns a true when checkbox has been selected.
1661236743484.png


Hopefully it's a little clear.

Thanks in advanced.

David
 

Attachments

  • 1661236649375.png
    1661236649375.png
    37.4 KB · Views: 5

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,214,793
Messages
6,121,619
Members
449,039
Latest member
Mbone Mathonsi

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