excel combo box populate - excel

In my excel sheet1 i have 2 combo box...
When i open the excel the 2 combox has to fill
if i select one value in one combo box the corressponding should populate in the second combo box

if they're populating from the same source data, it's easy - you can insert them as "Forms" ComboBoxes (not ActiveX ones) and on the properties set the "cell link" value to be the same cell. That way when the selected index of one changes, the other will change too.
If they're populating from different lists, it's a bit harder. You'll have to determine that one is the master and then inside the "Cell Link" cell for the "slave" ComboBox, you'll have to do a MATCH() into the lookup data for the second with an INDEX() into the lookup table for the first to determine what its value is. Will provide a bit more info if required.

Related

Combo Box auto change

I have a Combo Box linked to a cell that conducts Data Validation and pulls a wealth of information that is used to auto-populate a form with known data based on part number. The problem is, there are a couple part numbers that get tricky because, the part number that is displayed on the label is different than the part number in our inventory system.
When one of these part numbers are selected, the number is placed in Sheets(“Sheet2”).Range(“O6”). VBA is then programmed within a Private Sub Worksheet_Change (ByVal Target As Range)as:
If Sheets(“Sheet2”).Range(“O6”) = “10021234” Then Sheets(“Sheet2”).Range(“O6”) = “10025678”
This updates all other cells that reference Sheet2 Cell O6 by changing their values from 10021234 to 10025678 except, the Combo Box continues to show 10021234 until Worksheets(“Sheet1”).PrintOut is called within a CommandButton event.
What I’m trying to do is, when one of these numbers are selected from the Combo Box, before it’s printed, preferably as soon as the affected number is selected, change the value of the Combo Box to match the value of Sheet2 Cell O6.
tldr;
I would like the value of the Combo Box to change when the value of it’s linked cell changes

ms excel - data validation for 2 drop down list

I'm looking for the solution in excel data validation for 2 drop down list.
When I choose 1st drop down list 2nd drop down list will auto populate the correct value from table. If user choose 2nd drop down list 1st drop down list will auto populate the value also.
Can someone help me on this issue ?
I attach the sample file for my problem.
enter image description here
enter image description here
thanks!
Sample File
Trying to do a two way I don't think is going to work in the way you are trying so I am not surprised the examples you found were for one-way. I am open to being corrected.
You could hack around it for example using two form control listboxes linked to the same cell so a selection in one updates the other.
Then because an item might be out of view listbox underneath have two cells which use the linked cell to index back into the source lists.
In the example above, there are two list boxes from form controls in developer tab (customize ribbon > add developer tab.
Developer tab form control - 2nd from the right
You add two of these in to the sheet.
Right click format control on each one
Set the input range to the range containing your list of values for that listbox and set the linked cell e.g. G1
Ensure that whilst you select different input ranges for each list box, they should have the same linked cell e.g. G1.
Underneath the listboxes put a formula which uses the linked cell G1 to index back into the source lists for each listbox so you can retrieve the selected value and have it visible, in case not visible within listbox.
Example testing:

Excel "true-false" to checked boxes

I have an Excel spreadsheet that I'm generating from a SharePoint dashboard. It's turning my checkboxes in the SharePoint table to "true" or "false" values in the Excel spreadsheet. I wanted to know if it is possible to turn those "true" or "false" values back into checked boxes, with the appropriate check or uncheck option selected.
Any help at all is appreciated!
I strongly advise against using check boxes in Excel if you already have the data as TRUE/FALSE in a cell. Check box controls are meant to be for user forms, and even though they can be placed in the spreadsheet grid, they live in a layer on top of the spreadsheet. Yes, they can be linked to a spreadsheet cell, but this is cumbersome.
Instead of using a macro that inserts a check box for each data row you could use a helper column with a formula along the lines of
=IF([#checkBoxField],"a","r")
Then format the helper column with the Marlett font, which will show the letter "a" as a tick and the letter "r" as a cross.
Applying a formula like this will be much faster than inserting check box controls into each row and linking them to the field cells.
You can add a checkbox over a given cell, then edit its properties (Format Control --> Control Tab) and set its Cell Link property to the address of the cell; i.e. "B2". If you have too many such boolean cells, the task is tedious so you might need to automate it with VBA.
p.s. I agree with #teylyn that this shouldn't be a good choice if you have a huge column of boolean data; it adds too many shapes which is cumbersome. You should use it if the number of boolean cells is rather limited.

Type in a data validation cell

I am using data validation to offer a list of choice for each cell in a column. Is there a way to make it possible to type in each cell, rather than have to select from the drop down list?
The drop down list is quite long so would like to search it.
The default setting when a data validation dropdown list is created is to allow the user to type in the cell as well. Is this an active-x control dropdown or just a dropdown in the cells?
If it is just in the cells, then select the cell, go to Data-> Data Validation -> Validation -> then unselect the checkbox that says select from drop-down list.
If it is a VBA control, it would have to be replaced with an inputbox both in the sheet and in the code.

need to display a drop down menu in the userform in VBA. The data to be displayed is stored in a table in a sheet

I have a table, stored in a worksheet. I need to display the data of this table (only the first column) in a listbox in a User-form. Can anyone suggest me a way to do it ??? Thanks in advance . :)
Focused on your combo box in the form designer by clicking on it, then look for a property in the properties explorer named 'row source'. Supply an appropriate cell range , e.g. Sheet2!A1:A20, or A:A for the entire A column, ....

Resources