Results 1 to 2 of 2

i created a filter combo box in excel, but it shows me the complete data list.

Threaded View

diana9408 i created a filter combo box... 03-18-2019, 09:57 AM
Keebellah Re: i created a filter combo... 03-18-2019, 11:24 AM
  1. #1
    Registered User
    Join Date
    03-03-2019
    Location
    United States
    MS-Off Ver
    2016
    Posts
    3

    Post i created a filter combo box in excel, but it shows me the complete data list.

    I created a filter combo box in excel, but when i try to filter it it shows me the filtered number and the complete data list below. How can I modify the code to only have applied the filtered data?. Is there also anyway to update the ComboBox info automatically and delete repeated data? Thank You.

    This is the code that I am Using:
    Private Sub ComboBox1_Change()
    Dim i As Long
    Dim sFind As String

    sFind = Me.ComboBox1.Text

    If Len(sFind) = 0 Then
    Me.ListBox1.ListIndex = -1
    Me.ListBox1.TopIndex = 0
    Else
    For i = 0 To Me.ListBox1.ListCount - 1
    If UCase(Left(Me.ListBox1.List(i), Len(sFind))) = UCase(sFind) Then
    Me.ListBox1.TopIndex = i
    Me.ListBox1.ListIndex = i
    Exit For
    End If
    Next i
    End If

    End Sub
    Last edited by diana9408; 03-18-2019 at 10:04 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro to filter Data Shows details but data disappears or does not show all
    By AmandaM73 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2019, 12:20 AM
  2. [SOLVED] How to remove the data validated 'Arrow' that shows up when clicking the combo box list?
    By Excel-7878 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-22-2018, 10:00 AM
  3. Bar Chart Which Shows Complete Amount (Excel 2013)
    By zanshin777 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-18-2017, 03:48 AM
  4. Using macros created in Visual Basic to function combo box in Excel
    By toohey_lfc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-17-2014, 08:51 AM
  5. Replies: 1
    Last Post: 01-16-2014, 10:32 AM
  6. combo box to filter data in excel
    By help2 in forum Excel General
    Replies: 0
    Last Post: 03-18-2013, 07:43 PM
  7. Excel filter dropdown shows all data
    By daved in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2005, 11:35 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1