+ Reply to Thread
Results 1 to 6 of 6

combobox is not filtering my listbox

  1. #1
    Registered User
    Join Date
    07-18-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    3

    combobox is not filtering my listbox

    Hi I have developed a code to filter a listbox2 using a combobox3, but Iam still having problems trying to get two parts of the code working. If anyone can help me out I would appreciated

    My problems are these:

    PROBLEM
    Combobox3 must filter the lanes of the listbox2 if the column D located in data sheet equals 1 for that lane (to see this problem go to the userform in the breakdown tab

    If someone can look my code and tell what iam doing wrong I would post my file. Thanks in advance

    Paula

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: combobox is not filtering my listbox

    Hello Paula,

    Welcome to the Forum!

    Please try posting the workbook again. It did not come along with your post.

    To Attach a File:
    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    07-18-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: combobox is not filtering my listbox

    Hi, sorry I didn't know how to upload the file.

    Thanks for the instructions, here is my file at this address:

    http://www.speedyshare.com/files/23424547/Lanes2.xls

    Please let me know if I need to clarify the way i explained my problems

    Paula

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: combobox is not filtering my listbox

    See if this example helps


    FilterForm.zip
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    07-18-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: combobox is not filtering my listbox

    Hi thanks for the example, but what i need is not completely in the example. If you can help Iam having two problems, first I would like my combobox3 filter my listbox2 and also the combobox3 should filter the listbox2 if the information in the "data" sheet on column D equals -1 for that lane. This is how the information in my data sheet looks like:

    A B C D
    INVOICE CONTAINER LANE STATUS
    B 1 2 -1

    this is the code iam using:

    Please Login or Register  to view this content.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: combobox is not filtering my listbox

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

+ 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