Moving down a data validation list(drop down)one by one and save as a new workbook

letitbe0430

New Member
Joined
Mar 29, 2022
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Hi All,
I have created a drop down list like below. How can I move down the list one by one and then save it as a new tab in a new workbook?
1648573565468.png

I tried recording moving the cursor moving from Name 1 to Name2,all the code shows is just

1648573743288.png


Here is what I am trying to do:
1. Select Name1
2.save it as a new tab in a new workbook
3.Select Name2
4.save it as a new tab in a new workbook
and so on till the end of the list.
Thank you all in advance.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
I believe that is a data validation list? If yes, then how did you create that list?
 
Upvote 0
Yes,it is a data validation list. I used the data validation function and data from a reference tab.
1648576693983.png
 
Upvote 0
Then why not loop through the items in the reference tab and then save the tab in a new workbook. Wouldn't it be the same as looping through items of the data validation list?
 
Upvote 0
But every time I change the name,other data will change too.The purpose is to generate a statement for each individual. If I loop thru the reference page, will it achieve the same purpose?
1648577255702.png
 
Upvote 0
Here is one way to achieve what you want.

1. Store all the names from the reference tab in an array. Much better and simpler than trying to get the content of the data validation list.
2. Loop through the array and then one by one update the cell which has data validation with the value from the array. This way the moment the value is changed the dependent cells will also change
3. In the same loop then simply save the relevant tab in a new workbook.
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,052
Members
452,542
Latest member
Bricklin

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