Solved

MS Excel drop down

Posted on 2014-04-22
11
268 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

896 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now