VBA code that copies each option in a drop-down list and pastes it to a new workbook as values and formatting.

ammarimtiaz

New Member
Joined
Oct 17, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a sheet in a workbook that displays results based on a drop-down list in that sheet. For example, if you choose "Site 1" from the list it will show the data pertaining to "Site 1" in that sheet.
There are about 100 different options (100 different Sites) in the drop-down list.
I am not familiar with VBA at all, I was hoping to get a code that would select each option from the list then copy it and paste it as values and formatting to a new workbook one by one to a new sheet within that workbook.
The data to be pasted to the new workbook should be on each individual sheet. For example, 100 sheets for 100 options (Sites) for the drop-down list, and each sheet is named as its respective option from the drop-down list.
 

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,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

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