Results 1 to 4 of 4

Arrange data from excel table in a new worksheet based on criteria

Threaded View

  1. #3
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,505

    Re: Arrange data from excel table in a new worksheet based on criteria

    Then you can just use this code behind your combobox. Only thing you need to do, is scale your column widths.

    Private Sub ComboBox1_Change()
     Dim i As Long
     With ListBox1
       .List = Sheets(1).ListObjects(1).DataBodyRange.Value
        For i = .ListCount - 1 To 0 Step -1
           If InStr(1, .List(i, 0), ComboBox1.Value, 1) = 0 Then .RemoveItem i
        Next
     End With
    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 11-25-2021, 12:54 PM
  2. [SOLVED] Arrange Two Worksheet Data in One Sheet Table Form
    By KRIXXXX in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 05-27-2020, 12:56 AM
  3. Replies: 2
    Last Post: 05-20-2020, 07:00 PM
  4. [SOLVED] Excel VBA code required to re-arrange the data based on Column condition
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2015, 03:48 AM
  5. A new table based on PIVOT: filter & re-arrange the data
    By Ksenia in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-03-2014, 01:58 AM
  6. Replies: 7
    Last Post: 06-21-2012, 06:45 AM
  7. [SOLVED] Re-arrange a worksheet range to a pivot-friendly table?
    By Alabaster in forum Excel General
    Replies: 4
    Last Post: 12-01-2011, 09:19 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