+ Reply to Thread
Results 1 to 3 of 3

[Help] Narrowing search results prior to populating listbox

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    Somewhere, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    [Help] Narrowing search results prior to populating listbox

    I have a working search routine which I would like to have filtered and have no idea where to start with it.
    Please Login or Register  to view this content.
    My idea is that I would like only to populate the listbox with results where worksheet rows have no data in all four of columns 10, 12, 13 and 14. Currently data is returned from all rows but the listbox results are only used for the updating of one or more of those four columns.

    As I am almost entirely new to programming of this type I don't even know if it is more efficient to narrow the data for the search or to perform the search and narrow the results so any help would be appreciated.

    Thank you in advance.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: [Help] Narrowing search results prior to populating listbox

    Hi,

    The way I'd approach this is to use a helper column in your data which identifies whether cells in columns 10,12,12& 14 are all empty. Then first get the macro to perform an advanced filter, and filter the columns you want for your list box to a temporary area, then use this temporary area as the range for populating your Listbox. If you create a dynamic range name for the temporary area you can then use the name to populate the list box.

    Hope this helps
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    Somewhere, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: [Help] Narrowing search results prior to populating listbox

    Sorry for the delay in getting back to you on this.

    I've just read your response and I'd like to clarify something because it seems as if you may have misunderstood my poorly worded question.
    I need all of the columns in my listbox, (it populates entire rows for reference as it should), not just those which may be updated.

    What I need is the current results narrowing. Instead of outputting every row in the worksheet which match the search criteria, I would like to populate my listbox with just those which match the criteria and have no data in all of those four columns.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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