Solved

MS Excel drop down

Posted on 2014-04-22
11
277 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
11 Comments
 
LVL 34

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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
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 34

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 34

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 34

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

696 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