Results 1 to 25 of 25

Code help: Copy only filtered range to ListBox

Threaded View

  1. #1
    Forum Contributor onmyway's Avatar
    Join Date
    09-03-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2013
    Posts
    386

    Code help: Copy only filtered range to ListBox

    Hi guys,

    This is where I need and would appreciate your wisdom.

    I am soooooo close to solving this challenge i have been battling with for days; just need some guidance.

    Detail:

    I have a simple UserForm where one captures a record with some basic detail, as well as multiple line items in a ListBox.
    This all saves to a sheet (Sheet1), creating multiple rows.

    Then i have a feature where one would do a search for a record (to reprint or edit), using the same UserForm. The search lists the suggested items in ListBox3, and when one dbl click on the ListBox3 item, it filters Sheet1 accordingly, and updates the UserForm with that specific record.

    Here is my challenge:

    I added a sub updateListBox () to copy back the data of the multiple line items captured in ListBox1, back into the ListBox1. BUT, the problem is, it does not copy only the filtered data as it is supposed to. It copies all the data of my Range. It is almost as if the filter does not "trigger".

    This is what i want:

    After I have filtered my data using my filter options, only the filtered section of my range must be copied to my ListBox1.

    I have attached my sample workbook.

    Thank you very much in advance!
    Attached Files Attached Files
    Last edited by onmyway; 02-06-2015 at 04:50 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. fill listbox with filtered sheet. Need Assistance with code.
    By Andrew Andromeda in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-02-2015, 06:11 AM
  2. copy paste macros
    By rrk2008 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2014, 06:42 AM
  3. Copy filtered range
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-16-2010, 08:47 AM
  4. How to copy a filtered range ?
    By gaftalik in forum Excel General
    Replies: 2
    Last Post: 11-25-2005, 12:56 PM
  5. Copy filtered range
    By Milo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2005, 10:05 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