Cascading Combo Boxes - VBA Coding

Sep 8, 2009

I’ve created two combo boxes and what I seem to need are “cascading combo boxes”

I have named ranges on a worksheet called LookupLists
Column A has Areas
and Columns H to L has services within those areas.
Column headers, i.e. Row 1 of the columns, H to L are Serv1, Serv2 and so on.

Each area, in column A, has different services, in column H to L.

I have two combo boxes, what I’d like is depending on which Area is chosen in the first combo box, that the correct column is chosen which lists only those services available in that area; for example maybe Area A has services 2. Area B has services 4 …

… so in my “logical” mind if Combo box 1 I choose “Area B” then I want Combo box 2 to look at Column K and show the services from there..

View 9 Replies


ADVERTISEMENT

Combo Boxes Based On Other Combo Boxes

Feb 1, 2007

I would like to create a combo box however the contents of the combo box depends on what i have selected in a previous combo box.

View 2 Replies View Related

List Boxes, Combo Boxes???

Jul 26, 2006

I am developing a spreadsheet with numerous information on our different suppliers offices in the country for each of our outlets. I am tryin to define a way to do the following:

If a colleague selects a company another list will appear with the region and when the region is selected a list of the offices will appear.

View 3 Replies View Related

Multiple Combo Boxes ..

Sep 18, 2009

I have a manualy constructed user form which has 3 data validation lists.

Sources:
B7 = List 1
B12:B15 = List 2
B17:B20 and C17:C20 = List 3

These operate fine but I wish to replace the dropdown validation boxes and replace them with Combo boxes so that users are able to view the complete lists and also offer the option of inputting an item not included in the validation list if required.

I have tried many variations of input but my knowledge base is inadequate!

Mainly I end up with the combo box working on one cell only!

Can tell:

1. Do I have to raise 1 combo box per cell?

2. What vba code is necessary to make them all work?

View 10 Replies View Related

Combo Boxes In UserForm

Jan 13, 2010

I created a combobox on the fmEdit userform that I want to use to select a name from the worksheet and display on the Userform the data from that row for editing, which can then be submitted to make changes accordingly on that row.

View 7 Replies View Related

Multiple Combo Boxes

Sep 9, 2009

I did away with the merged cells, and now I have a combo box in every cell that I want it in.

My problem is, I would like to format each combo box seperately. Every cell that has a combo box in it has data vakidation activated. I copy and pasted code to get it to work. It works great, but I would still like to change the combo box size and tab and enter functions for each individual one. I created more than one combo box but I kept getting an error on them. Any help or knowledge would be greatly appreciated.

I am posting just the code that I copy and pasted.

View 12 Replies View Related

Navigation Via Combo Boxes

Aug 23, 2005

I am trying to use the combo box feature to navigate between sheets. In other words, I have a dropdown menu at the top of each sheet ("Main Menu," "Goals," etc.) and am trying to work out a macro that directs the user to whichever sheet is selected. Is this possible?

View 9 Replies View Related

Adding Combo Boxes On The Fly

Jun 19, 2009

Is there a way to add comboboxes to a userform on the fly.

For example there are twenty different categories. I want the user to be able to say he wants 2 of these categories and 2 combo boxes pop up (each combobox has a list of the 20 categories). Then next to the categories, text boxes to type the quantity of each category.

View 9 Replies View Related

Protecting Combo Boxes

May 13, 2006

I have quite a few combo boxes on my Excel worksheet. These combo boxes are from the Control Toolbox. Right now, the drop down lists work great, however, if the user wants, they can just type in a value. How do I stop them from doing this, and make it to where they can ONLY select one of the choices from the drop down.

View 4 Replies View Related

Vlookups From Combo Boxes

Aug 15, 2006

I am trying to use a vlookup from input from a combobox. In other words, if a user selects "Los Angeles" from a combo-box titled "city", I want the state of California to appear in a cell labeled "State" (A3).

View 2 Replies View Related

Combo Boxes Limitations

Oct 12, 2006

is there a combo boxes limitation in a certain worksheets or workbook.?
if there is then how many? coz i got a problem , i have to make around 2000 combo boxes, if i save it , i got no problem , but when i closed it and then reopen , the problem occurs..

View 4 Replies View Related

Filters Mess Up Combo Boxes

Nov 13, 2009

I have an excel database with comboboxes. I want to be able to filter the data, therefore I am using the autofilter function.

1) When I filter, the comboboxes above a data section that is to be viewed end up at the first row, and comboboxes below end up in the first row following the viewed data set. Is there any way in which I can hide comboboxes when their rows are hidden? Today I use the form comboboxes, but I can use the control toolbox ones if necessary. Also, I can use some other function than the autofilter function if necessary.

2) Is there any way to make the filter function take information in comboboxes into account as well? For example, if I filter by weight and one option is available in three different weightes (displayed in a combobox) I still want that to be seen following filtering (can I perhaps write information in the cell under the comboboxes? If so, can the filter function take several data in the same cell into account?).

View 10 Replies View Related

Loading Combo Boxes Depending On Others

Apr 27, 2009

I have in a user form 2 combo boxes. In one of my sheets I have the data that I want to be loaded in the combobox depending on the other combobox. In other words if combobox1 = white, then combobox2 needs to have the following items to be picked from "large", "medium", "small". If combobox1 = "blue" then I combobox2 needs to have another 4 items and so on. I have about 8 different options in combobox1.

What code could I use on that?

Also in that same project, I have a spreadsheet that has all my data; such as a inventory. How can I do, when I pick the SKU# to load the other fields, such as Description, qty on hand, price, etc?

View 3 Replies View Related

Populating Combo Boxes At Start Up

Jun 4, 2009

I tried moving it to a standard module and it will no longer work tells me invalid use of Me. How can I populate these two combo boxes at start up?

View 4 Replies View Related

Fill Combo Boxes On Each Sheet

Jun 10, 2009

How do I change the below code to fill all combo boxes all on sheets. All the names of the controls should be the same on each sheet since each sheet was created from a copy of the original.

View 5 Replies View Related

Source Data For Combo Boxes

Nov 2, 2009

I'm trying to create a workbook for tracking costs and change orders for multiple subcontractors. My main question is about combo boxes. I would like to create a master list of subcontractors on The masterlists tab of the attached workbook. I would like to use this masterlist as the data source for a combo box I'm going to use to replace the subcontractor txtbox on the SubCoEntryFrm. I figured getting away from a user typing something in would benefit me if I wanted to use that subcontractor name field to analyze data.

View 5 Replies View Related

Combo Box Inputs Creates New Boxes

Jul 30, 2007

i have a combo box that contain range of number from (1-9)

i need some help in creating the yellow boxes automatically after i have choose the number that i want from the combo box

View 9 Replies View Related

Hide Combo Boxes (dropdown List)?

Nov 14, 2008

I trying to do a sheet with one combo box (dropdown list) where I want the user to be able to choose "add rows" to make more boxes appear. My idea to solve this was to put all the boxes in the sheet, and then create a macro that either hides or shows the rows with the extra boxes. Now I have a problem that hiding the rows just does that, and only that. The rows disappear, but the combo boxes stay visible (but ends up on top of eachother).

View 2 Replies View Related

Link Two Combo Boxes Via A User Form

Feb 18, 2009

I'm trying to link two combo boxes via a user form. I'm trying to select a city in one combobox which in turn would provide a listing of zip codes for that particular city in the next combobox.

View 6 Replies View Related

Text Inconsistencies In ActiveX Combo Boxes

Jan 16, 2010

I'm building an application that uses a large number of activex combo boxes. These boxes are getting loaded from specific fields in an associated database.

I know ActiveX combo boxes can be buggy; I'm wondering if anyone has found a way around the text appearance inconsistencies seen in these controls? e.g., sometimes the text is smaller, sometimes it's spaced wider, sometimes it appears at the top of the combo box sometimes in the center.

I put a screen shot of what I'm talking about in a word doc along with a control properties screen shot, All controls have the same properties except for the text property.

View 5 Replies View Related

Reset The Combo Boxes And Remove Selected Values

Apr 9, 2007

I have 4 combo boxes that allow me to make selection from pivot tables. As you know in the pivot table there's the "All Selection" which does not exist in combo boxes (I think), so I created a macro to reset all the pivot tables with the "All" option selected in all of them. However the values in the combo boxes are not changing.

View 14 Replies View Related

Populate Two Text Boxes Based On A Combo Box Selection

Dec 31, 2009

I want to populate the values of two textboxes that we will call TextBox5 and TextBox6 from columns W and X of a spreadsheet called "PowerAnalysis" when a selection is made form ComboBox5.

The ComboBox5 works perfectly now. I just need it to populate the other two text boxes.

All the data resides in the same row on the same sheet of PowerAnalysis when the selection is made in ComboBox5.

I hope I have been able to give a clear picture of what I am wanting to do.

View 9 Replies View Related

Inter-relating Combo Boxes In Userforms Based On Data In Tables

Oct 4, 2009

I have worked out (through reading and what not) how to link a combo box to a range in a worksheet. What I need to do is relate what is selected in that combo box, to another combo box which picks from another range. I have a data spreadsheet called "Offices". It's set up as follows

(Sorry, it's really frustrating trying to format it to a table type thing but you get the gist)

ROW NUM______COLUMN A____________COLUMN B
---------------------------------------------------------------
1_____________DistrictOffice1_______...fice1@test.com
---------------------------------------------------------------
2_________________________________OFFICE 1
3_________________________________OFFICE 2
4_________________________________OFFICE 3
5_________________________________OFFICE 4
---------------------------------------------------------------
6_____________DistrictOffice2_______...fice2@test.com
---------------------------------------------------------------
7_________________________________OFFICE 2...............

View 4 Replies View Related

Command Button To Call Macro Based On Selections In Two Combo Boxes

Aug 21, 2006

I have two combo boxes that both contain 7-12 separate search criteria for the user to choose from. The other includes months and the other value ranges in text form. Based on the selections, e.g. "August" from other and "increased by more than 5 %" from other, I'd like to have a command button to execute the appropriate macro. I've already compiled the macros for each occasion but I just can't figure out how to get the button to execute them. Can I use the Select Case statements? If so, how?

Oh, and whether it's relevant or not, the boxes and the button are from the control toolbar.

View 5 Replies View Related

Userform With Cascading Combobox

Jan 27, 2010

Basically I want it to look similar to the vehicle search on auto trader, or whatcar, where you first chose the make, then use a second combobox for the model (dependent on the choice made in the first combobx.

View 6 Replies View Related

Cascading Window Tabs - Can You

Aug 20, 2007

My spreadsheet has approx 50 tabs, can I cascade them so that I don't have to scroll across all the time to find the one I want (ie, can they all be shown in the one window)

View 8 Replies View Related

Cascading Data Validation

Feb 26, 2008

I am trying to use cascading Data validation, but I keep getting a ref error.

I have set up a Dynamic Named range called Claim_Type_1

This contains the following choices:
External_Meeting
Internal_Meeting
Attend_Training

I have then set up Dynamic Named ranges called "External_Meeting", "Internal_Meeting" and "Attend_Training"

On my sheet, I am using the following for the data validation:

Source formula "=INDIRECT(M7)" - M7 is the cell with the original validation

It then tells me "The source currently evaluates to an error"

View 9 Replies View Related

Cascading Combobox - For Printing

Aug 10, 2006

I have a worksheet with 13 columns. ....which i have attached.

I am trying to use cascading combobxes for priting the certaion rows that match the criteria in the 2 comboboxes.

I have -

Customer - in column C
Category - in column G
Complaint Owner - in column J
Month - in column L

Above 4 options are shown in the drop down list in Combobox 1.

Once user selects any one option from combobox1, combobox2 will populate with the relevent list of Customers, Categories, Complaint owners and months.

Also, depending the selection in combobox1, I want excel to search particular columns for the value in combobox2. And then display all the rows that fit the criteria in print preview (showing all the columns A:L, fit in one page)....which then can be printed by user.

I managed to the get the first part right where combobox2 populates based on selection in combobx1. But I am struglling to get the second part....

I have used a code that I found in another forum and tried to change it to suit my purpose, but obviously i have messed up the code and there are a lot of errors now...

View 4 Replies View Related

Cascading Combobox And Dynamic Ranges?

Aug 21, 2013

I want to create a cascading combo box from some values that I have, ill explain how I approached it.

Cascading combo box is a combobox which values are obtained depending on the answer of a previous combo box.

So I set up a little table like so:

Categories Car Train Bike
Car Mercades First Honda
Train Ford Western Ducati
Bike Skoda Red Suzuki

and the combo boxes would be set aside from that.I collected the data in Named Ranges (A Range for Categories, A Range for Car, A Range for Train...)

The first data validation box contains = Categories the second data validation box contains =INDIRECT($C$2) (Where C2 was the range of the first validation box)

Once this was working, I decided to change the formula for the named ranges to allow me to add more values.

The formula was: =$F3$F8

I changed it to: =OFFSET($F$3,0,0,COUNTA($F3:$F96),1)

I expected this to work however, it just doesnt.... when clicking on the drop down arrow for the validation box, nothing happens. No box or values or dropdown.

View 2 Replies View Related

Cascading Two Tier Dropdowns In Form Control

Jun 4, 2013

I am having some trouble with cascading two tier drop down. I cannot seem to find out how to do it. I am trying to create a two tier cascading drop down in form control. I want the first drop down to be Products we have and the second one to be customers. I also want to be able to create a bar chart from these drop downs where after we choose our customer by product, it shows the revenue we have recieved from the customer by months. Is there a way to do this? I figured out how to do this with just one combo box, but I am unable to do a cascading one.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved