Solved

MS Excel drop down

Posted on 2014-04-22
11
270 Views
Last Modified: 2014-04-25
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:
F66
F67
F68
F69
Clell-link-update.jpg
P-217---Good-Catch---Near-Miss-P.xlsm
0
Comment
Question by:cssc1
  • 5
  • 4
  • 2
11 Comments
 
LVL 33

Expert Comment

by:Norie
ID: 40015929
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.

 =Foreman!$B$2:$B$21

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.
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 40015949
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
shp.TopLeftCell.Select
End If
Next shp
End Sub
0
 

Author Comment

by:cssc1
ID: 40016198
The macro locked up see attached image
lockup.jpg
lockup.jpg
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 40016220
How long did you wait? This is a very slow process.
0
 

Author Comment

by:cssc1
ID: 40018044
20 MIN
0
 
LVL 33

Expert Comment

by:Norie
ID: 40018095
If you used Data>Validation... it would take seconds.:)
0
 

Author Comment

by:cssc1
ID: 40018606
what is data validation?
0
 
LVL 33

Expert Comment

by:Norie
ID: 40018837
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.

 =Foreman!$B$2:$B$21

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?
0
 

Author Comment

by:cssc1
ID: 40021079
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.....
0
 
LVL 33

Accepted Solution

by:
Norie earned 500 total points
ID: 40021487
The data validation replaces the dropdown controls, so remove those controls.

See the attachment, in each cell in F11:F2000 there's a dropdown.
P-217---Good-Catch---Near-Miss-P.xlsm
0
 

Author Closing Comment

by:cssc1
ID: 40023940
Your expert help solved my problem.
Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question