How To Autocomplete When Typing Drop Down List Or create Drop Down List with Autocomplete Option
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
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:
https://www.youtube.com/c/AbdulAleemBaig?sub_confirmation=1
and Facebook page:
https://www.facebook.com/FreeTechnologyTutor/
Видео How To Autocomplete When Typing Drop Down List Or create Drop Down List with Autocomplete Option канала Abdul Aleem Baig
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:
https://www.youtube.com/c/AbdulAleemBaig?sub_confirmation=1
and Facebook page:
https://www.facebook.com/FreeTechnologyTutor/
Видео How To Autocomplete When Typing Drop Down List Or create Drop Down List with Autocomplete Option канала Abdul Aleem Baig
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Searchable Drop Down List in Excel (Very Easy with FILTER Function)How To Auto Populate Text From A Drop-Down List Selection in MS Excel - Create Fillable FormsAutocomplete Entries With Excel Drop Down ListLearn How to MASTER Excel Auto-Complete and Auto Fill With This Amazing TRICKExcel Create Dependent Drop Down List TutorialMS Excel - Dependent Dropdown ListHow To Create Searchable Drop Down List In Excel | Searchable data validation in excelCreate a Searchable Drop Down List Just Like Google - Excel TrickExcel VBA ComBox Box with AutoComplete Search - Excel VBA Searchable Combox - Code Included3 Ways to Automatically Update Drop Down Lists in Excel - Data ValidationHow to Auto-Populate Fields in Excel Using a Drop-Down and VLookup in ExcelHow to create a Dynamic Search Suggestion Drop Down List in ExcelMany SEARCHABLE Drop-Down Lists in Excel (No VBA)How to Add New Items to Excel Drop-down Lists AutomaticallyHow to Create Drop Down Lists in Cells - The Complete Excel GuideExcel Autocomplete And Suggestions From ListAdvanced Excel - Data Validation and Drop-Down ListsCreate Searchable Drop down List in Excel 365 Without VBA | Dropdown List in Excel in Hindi #excelHow to autocomplete name when typing in Excel Drop Down List ?Searchable Drop-Down List in Excel - The Easy Way