+ Reply to Thread
Results 1 to 7 of 7

ListBox Filter

  1. #1
    Registered User
    Join Date
    11-19-2015
    Location
    miami
    MS-Off Ver
    2003
    Posts
    8

    ListBox Filter

    Hello, I have this code to populate one listbox but I want to put in it the data filter from sheet1 from carros number. Thanks

    Chequeado Cambio
    Carros Estado Fecha Gasolina Millas Nombre Aceite Pendiente



    Private Sub UserForm_Initialize()
    With ListBox1
    .ColumnCount = 8
    .ColumnWidths = "50;50;50;50;50;100;80;100"
    .List = DataSource.Value
    End With
    TextBox1.Tag = 0
    TextBox2.Tag = 1
    TextBox3.Tag = 2
    TextBox4.Tag = 3
    TextBox5.Tag = 4
    TextBox6.Tag = 5
    TextBox7.Tag = 6
    TextBox8.Tag = 7
    SheetUpdated = True
    End Sub

  2. #2
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: ListBox Filter

    Hi @rlinares67
    I found that you thread has not been answered since a week
    For me, your question isn't clear enough, so I'm guessing what you need.
    Anyhow, you can find a lot of good ideas in the link bellow.
    I've prepared a file with three different userforms that can help you

    http://sitestory.dk/excel_vba/listboxes.htm
    Attached Files Attached Files
    Barriers are there for those who don't want to dream

  3. #3
    Registered User
    Join Date
    11-19-2015
    Location
    miami
    MS-Off Ver
    2003
    Posts
    8

    Re: ListBox Filter

    Thank you so much. Just one more help, how can I do to pick one the records from the 3rd option, edit it and save the changes back to the sheet?.

    Thanks again and I'm waiting for your response.

  4. #4
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: ListBox Filter

    Hi @rlinares67

    Starting from Form3, I added new buttons to your form
    If you select a row, and press Edit, it shows you a new Form4
    There you can edit the values of the selected row, and aceptar or cancelar
    if you accept, the list in Form3 will be updated, and you can edit a new row

    After that, you can Grabar and all the changes are pasted to the worksheet

    I hope it solves your questions.

  5. #5
    Registered User
    Join Date
    11-19-2015
    Location
    miami
    MS-Off Ver
    2003
    Posts
    8

    Re: ListBox Filter

    No attachment.

  6. #6
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: ListBox Filter

    There you have the file
    I hope this time it was uploaded succesfully.

    Vicho
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-19-2015
    Location
    miami
    MS-Off Ver
    2003
    Posts
    8

    Re: ListBox Filter

    Thanks for everything, but still I can't make this works for me (saving data to sheet2 ). I let you mi file, please take a look and fix my errors, I'm new with the userforms and VBA programming.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Listbox filter
    By rain4uu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2014, 01:18 AM
  2. [SOLVED] Data filter from a ListBox
    By Glenn Kennedy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-05-2014, 10:25 PM
  3. Filter Listbox
    By Sniper in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-27-2014, 05:16 AM
  4. Filter listbox
    By sohaila in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2013, 03:26 AM
  5. listbox vs filter
    By ahmad123 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-14-2011, 02:13 AM
  6. Listbox that alters a filter?
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2010, 10:49 AM
  7. Filter Rowsource for Listbox
    By Noah in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-08-2005, 10:55 PM

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