+ Reply to Thread
Results 1 to 4 of 4

Only copy visible data to ListBox

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

    Only copy visible data to ListBox

    Hi guys,

    i hope you can help me.

    I am trying to copy a range of filtered data to a ListBox, but am struggling with the parameters.
    1. How can I edit this sub to only copy the visible data of my Range ("RecordData");
    2. Not copy the first row - headers;
    3. Not copy empty rows in this range?


    Please Login or Register  to view this content.
    Thank you for all your help!
    Last edited by onmyway; 02-06-2015 at 04:55 AM.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: Only copy visible data to ListBox

    Please Login or Register  to view this content.
    If you're setting the filter through code, you should check that the range DOES exist.

    Please Login or Register  to view this content.
    Last edited by Tinbendr; 02-04-2015 at 09:24 AM.
    David
    (*) Reputation points appreciated.

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

    Re: Only copy visible data to ListBox

    hi david,

    thanks for the response. this seems to only copy the header row. I would like to copy multiple rows if there are. is my search/filter perhaps flawed?

    i have attached my workbook just in case.
    Attached Files Attached Files

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

    Re: Only copy visible data to ListBox

    Most of my challenges in this regard was solved in this thread:

    http://www.excelforum.com/excel-prog...t=#post3978430

    Thank you all!

+ 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. Excel VBA to copy visible filtered data from from one worksheet to another
    By rahul1023 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2013, 09:00 PM
  2. Error checking of visible filtered data - Display text in textbox if no data visible
    By cocobean in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2012, 12:58 AM
  3. Hidden/Visible sheets in listbox
    By DRoberts in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2009, 08:18 AM
  4. Replies: 1
    Last Post: 10-08-2005, 05:05 PM
  5. listbox.visible = false question
    By Oreg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-20-2005, 10:43 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