Developer For Excel 2016 Autocomplete Drop Down

A drop-down list means that one cell includes several values. When the user clicks the arrow on the right, a certain scroll appears. He can choose a specific one.

Here are your tricks to leverage AutoComplete regardless of the length or content of your Excel data: From the cell where you want to create a new entry, press Alt + Down Arrow to see a drop-down list of AutoComplete choices, that is, a list of up to the last 100 different entries in the worksheet column. Right-click on a cell and then left. Click Kutools Drop-down List Searchable Drop-down List Enable Searchable Drop-down List. In the opening Kutools for Excel dialog box (this dialog only pops up when applying this feature at the first time), click the Yes button. Then in the Searchable Drop-down List dialog box, you need to configure as follows. Re: Auto complete Entries With Drop Down List You insert the combobox by using Developer mode, but that is just to insert it. You do not have to use Developer mode to use it-in fact, it will not work if Developer mode is on. In the attached file the list of items is found on on sheet 'Country List'. I have a column in excel where I'm trying to create a dropdown list with an autocomplete capability. For some reason, I can't get it to work. My source list is on a different worksheet within the workbook. I can create the dropdown list with no problem, the trouble is with: a) getting autocomplete to work.

A drop-down list is a very handy Excel tool for checking the entered data. The following features of drop-down lists allow you to increase the convenience of data handling: data substitution, displaying data from another sheet or file, the presence of the search and dependency function.

Creating a drop-down list

Path: the «DATA» menu – the «Data Validation» tool – the «Settings» tab. The data type – «List».

You can enter the values from which the drop-down list will consist, in different ways:

  1. Manually through the «Comma» in the «Source:» field.
  2. Enter the values in advance. Specify a range of cells with a list as a source.
  3. Assign a name for a range of values and enter the name in the «Source:» field.

Any of the mentioned options will give the same result.

Drop-down list with data lookup in Excel

It is necessary to make a drop-down list with values from the dynamic range. If changes are made to the available range (data are added or deleted), they are automatically reflected in the drop-down list.

  1. Highlight the range for the drop-down list. Find the «Format As Table» tool in the main menu.
  2. The styles will open. Choose any of them. For solving our task, design does not matter. The presence of the header is important. In our example, the header is cell A1 with the word «Trees». That is, you need to select a table style with a header row. You’ll get the following range:
  3. Put the cursor on the cell where the drop-down list will be located. Open the parameters of the «Data Validation» tool (the path is described above). In the «Source:» field, write the following function:

Let’s test it. Here is our table with a list on one sheet:

Add the new value «Spruce» to the table.

Now delete the «Birch» value.

The 'smart table', which easily 'expands' and changes, has helped us to perform our task.

Now let's make it possible to enter new values directly into the cell with this list and have data automatically added to the range.

Down

Developer For Excel 2016 Autocomplete Drop Down Box

  1. Form a named range. Path: «FORMULAS» - «Define Name» - «New Name». Enter a unique name for the range and press OK.
  2. Create a drop-down list in any cell. You already know how to do this. Source – name range: =trees.
  3. Clear the following check boxes: «Error Alert», «Show error alert invalid data entered». If you do not do this, Excel will not allow you to enter new values.
  4. Launch the Visual Basic Editor. To do this, right-click on the name of the sheet and go to the «View Code» tab. Alternatively, press Alt + F11 simultaneously. Copy the code (just insert your parameters).

  5. Private Sub Worksheet_Change(ByVal Target As Range)
    Dim lReply As Long
    If Target.Cells.Count > 1 Then Exit Sub
    If Target.Address = '$C$2'Then
    If IsEmpty(Target) Then Exit Sub
    If WorksheetFunction.CountIf(Range('trees'), Target) = 0 Then
    lReply = MsgBox('Add entered name ' & _
    Target & ' in the drop-down list?', vbYesNo + vbQuestion)
    If lReply = vbYes Then
    Range('trees').Cells(Range('trees').Rows.Count + 1, 1) = Target
    End If
    End If
    End If
    End Sub
  6. Save it, setting the «Excel Macro-Enabled Workbook» file type.

When you enter a new name in the empty cell of the drop-down list, the following message will appear: «Add entered name Baobab?».

Click «OK» and one more row with the «Baobab» value will be added.

Excel drop-down list with data from another sheet / file

When the values for the drop-down list are located on another sheet or in another workbook, the standard method does not work. You can solve the problem with the help of the =INDIRECT() function: it will form the correct link to an external source of information.

  1. Activate the cell where we want to put the drop-down menu.
  2. Open the Data Validation options. In the «Source:» field, enter the following formula:
Excel

The name of the file from which the information for the list is taken is enclosed in square brackets. This file must be opened. If the book with the desired values is stored in a different folder, you need to specify the path completely.

How to create dependent drop-down lists

Take three named ranges:

It is an indispensable prerequisite. Above you can see how to turn a normal scroll in a named range (using the «Name Manager»). Remember that the name cannot contain spaces or punctuation.

  1. Create the first drop-down list, which will include the names of the ranges.
  2. Having placed the cursor on the «Source:» field, go to the sheet and select the required cells alternately.
  3. Now create the second drop-down menu. It should reflect those words that correspond to the name chosen in the first scroll. If the «Trees», then «Linden», «Maple», etc. should correspond to it. Enter the following function: =INDIRECT(А1) in the «Source:» field. A1 is a cell with the first range.

Selecting multiple values from a drop-down list in Excel

Developer For Excel 2016 Autocomplete Drop Down List

Sometimes, you need to select several items from the drop-down list. Let's consider the ways of performing this task.

  1. Create a standard ComboBox using the «Data Validation» tool. Add a ready-made macro to the sheet module. The way how to do this is described above. With its help, the selected values will be added to the right of the drop-down menu.

  2. Private Sub Worksheet_Change(ByVal Target As Range)
    On Error Resume Next
    If Not Intersect(Target, Range('E2:E9')) Is Nothing And Target.Cells.Count = 1 Then
    Application.EnableEvents = False
    If Len(Target.Offset(0, 1)) = 0 Then
    Target.Offset(0, 1) = Target
    Else
    Target.End(xlToRight).Offset(0, 1) = Target
    End If
    Target.ClearContents
    Application.EnableEvents = True
    End If
    End Sub
  3. For the selected values to be shown from below, insert another code for processing.

  4. Private Sub Worksheet_Change(ByVal Target As Range)
    On Error Resume Next
    If Not Intersect(Target, Range('H2:K2')) Is Nothing And Target.Cells.Count = 1 Then
    Application.EnableEvents = False
    If Len(Target.Offset(1, 0)) = 0 Then
    Target.Offset(1, 0) = Target
    Else
    Target.End(xlDown).Offset(1, 0) = Target
    End If
    Target.ClearContents
    Application.EnableEvents = True
    End If
    End Sub
  5. For the selected values to be displayed in the same cell separated by any punctuation mark, apply this module.

Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
If Not Intersect(Target, Range('C2:C5')) Is Nothing And Target.Cells.Count = 1 Then
Application.EnableEvents = False
newVal = Target
Application.Undo
oldval = Target
If Len(oldval) <> 0 And oldval <> newVal Then
Target = Target & ',' & newVal
Else
Target = newVal
End If
If Len(newVal) = 0 Then Target.ClearContents
Application.EnableEvents = True
End If
End Sub

Do not forget to change the ranges to 'your own' ones. Create scroll in the classical way. The rest of the work will be done by macros.

Developer for excel 2016 autocomplete drop down boxDeveloper for excel 2016 autocomplete drop down menuDrop

Searchable drop-down list in Excel

  1. On the «DEVELOPER» tab find the «Insert» tool – «ActiveX». Here you need the button «Combo Box (ActiveX Control)» (focus your attention on the tooltips).
  2. Click on the icon – «Design Mode» becomes active. Draw a small rectangle (the place of the future scroll) with a cursor that transforms to a 'cross'.
  3. Click «Properties» to open a Combobox1 of settings.
  4. Enter the range in the ListFillRange row (manually). The cell where the selected value will be displayed can be changed in the LinkedCell row. Changing of the font and size can be done in Font row.

When you enter the first letters from the keyboard, the appropriate items are displayed. These are not all the pleasant moments of this instrument. Here you can customize the visual representation of information, specify two columns at once as a source.

Microsoft Excel

To create your own drop-down list for the cell, do the following:

Adobe photoshop elements 2.0 free download for mac. 1. Create a column or a row of the items in theactive spreadsheet for the drop-down list.

2. Select the cell that needs a drop-down list fordata validation (cell B2, in this example).

3. On the Data tab, in the Data Toolsgroup, click Data Validation:

4. In the Data Validation dialog box, onthe Settings tab:

  • In the Allow drop-down list, select the List item.
  • In the Source box, specify the range that contains the drop-down list items(in this example, the range is E1:E8).
  • Check In-Cell Dropdown option to show the drop-down list. Otherwise, Excelvalidates your data entry but does not show the drop-down button to select itemsfrom the list.

5. Click OK.

Notes:

Developer For Excel 2016 Autocomplete Drop Down List

  • You can hide the range of values used in the Source box or create it onthe protected sheet that you can hide.
  • You can add the drop-down list to multiple cells by selecting the appropriatecells or copy/paste the cell with a list.
  • If the list is short, you can avoid Step 1. Instead, type your list items(separated by commas) in the Source box in the Data Validationdialog box:
  • If you plan to share your workbook with users of Excel 2007 or earlier, makesure that the list is on the same sheet as the drop-down list. Alternatively,you can use a named range.

Developer For Excel 2016 Autocomplete Drop Down Menu

See also this tip in French:Création d’une liste déroulante dans une cellule.