HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How To Autocomplete When Typing Drop Down List Or create Drop Down List with Autocomplete Option

132,789 views March 14, 2020 3:45

Watch on YouTube
ChannelAbdul Aleem Baig

Description from the creator

In this video you will learn How to auto complete when typing in excel drop down list. or How to create drop down list with auto complete option in excel

Unlock the efficiency of Excel with our latest tutorial on autocompleting in drop-down lists. In this comprehensive guide, we not only walk you through the process of creating drop-down lists but also reveal the powerful autocomplete option, streamlining your data entry tasks.

📊 Video Highlights:

Creating Drop-Down Lists: Learn the fundamentals of creating drop-down lists in Excel for organized and error-free data entry.
Autocomplete Demystified: Discover how to enable and leverage the autocomplete option, saving time and enhancing accuracy.
Customization Techniques: Tailor your drop-down lists and autocomplete settings to match the specific needs of your Excel projects.
Optimizing Data Entry: Explore how autocomplete in drop-down lists boosts efficiency, especially in large datasets.
Pro Tips for Seamless Autocomplete: Gain insights into advanced tips and best practices to make the most of autocomplete in Excel.
Whether you're a data analyst, Excel enthusiast, or a professional seeking to streamline data entry, this tutorial is crafted to enrich your Excel proficiency. Subscribe now, hit the notification bell, and let's master autocompleting in drop-down lists together! 🚀📈

VBA Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim xCombox As OLEObject
Dim xStr As String
Dim xWs As Worksheet
Dim xArr

Set xWs = Application.ActiveSheet
On Error Resume Next
Set xCombox = xWs.OLEObjects("DropListTemp")
With xCombox
.ListFillRange = ""
.LinkedCell = ""
.Visible = False
End With
If Target.Validation.Type = 3 Then
Target.Validation.InCellDropdown = False
Cancel = True
xStr = Target.Validation.Formula1
xStr = Right(xStr, Len(xStr) - 1)
If xStr = "" Then Exit Sub
With xCombox
.Visible = True
.Left = Target.Left
.Top = Target.Top
.Width = Target.Width + 5
.Height = Target.Height + 5
.ListFillRange = xStr
If .ListFillRange = "" Then
xArr = Split(xStr, ",")
Me.DropListTemp.List = xArr
End If
.LinkedCell = Target.Address
End With
xCombox.Activate
Me.DropListTemp.DropDown
End If
End Sub
Private Sub DropListTemp_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
Select Case KeyCode
Case 9
Application.ActiveCell.Offset(0, 1).Activate
Case 13
Application.ActiveCell.Offset(1, 0).Activate
End Select
End Sub

After that you have to save file with .xlsm extension.


Subscribe Our Channel:
youtube.com/c/AbdulAleemBaig?sub_confirmation=1

and Facebook page:
facebook.com/FreeTechnologyTutor/

About this tutorial

Abdul Aleem Baig published this 3:45 video tutorial on March 14, 2020. It has been watched 132,789 times on YouTube.

Category
Education
Duration
3:45
Published
March 14, 2020
Views
132,789
Likes
1,034

Tags

Share

This tutorial in other languages