MS Excel drop down

On sheet Main Menu, there are many drop down boxes. I need add drop down boxes to F 2000. How can I add more drop down boxes with the following input range Foreman!$B$2:$B$21
 and cell link that changes based on the cell. For example:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NorieAnalyst Assistant Commented:
Instead of droddown controls you could use Data>Validation...

To do that select the range you want the dropdowns in, goto Data>Validation..., select the List option and enter this for the source.


The value picked from the data validation dropdown will go in the cell the validation is in, so no need to set the linked cell.
Saqib Husain, SyedEngineerCommented:
You can copy down the controls all the way to 2000 and then run this macro

Sub adddb()
For Each shp In ActiveSheet.Shapes
If Left(shp.Name, 9) = "Drop Down" Then
shp.ControlFormat.LinkedCell = shp.TopLeftCell.Address
End If
Next shp
End Sub
cssc1Author Commented:
The macro locked up see attached image
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

Saqib Husain, SyedEngineerCommented:
How long did you wait? This is a very slow process.
cssc1Author Commented:
20 MIN
NorieAnalyst Assistant Commented:
If you used Data>Validation... it would take seconds.:)
cssc1Author Commented:
what is data validation?
NorieAnalyst Assistant Commented:
I tried to explain in an earlier post but probably made a bad job of it.

To set up data validation first select your range, F11:F2000, you can do by entering F11:F2000 in the Name box to the right of the Formula bar.

Then click the Datat tab, select Data Validation>Data Validation...

Now in the Allow box select List from the dropdown.

You should now see a box labelled Source which you should enter this in.


Finally click OK.

Now you should have dropdowns in each cell of the range F10:F2000.

Whenever you select a value from one of the dropdowns that value will go in the corresponding cell.

Does that help?
cssc1Author Commented:
Yes, this did work. However, the "Cell Link" box on the "Control" tab of the Format Control screen all say: $F66.

The Cell Link should be equal to the row. For example: F11, F12, F13, F14.....
NorieAnalyst Assistant Commented:
The data validation replaces the dropdown controls, so remove those controls.

See the attachment, in each cell in F11:F2000 there's a dropdown.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cssc1Author Commented:
Your expert help solved my problem.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.