+ Reply to Thread
Results 1 to 18 of 18

Populate Values in Multiple List Boxes based on Multiple Criterias

  1. #1
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Populate Values in Multiple List Boxes based on Multiple Criterias

    All,

    I am completely stuck and don't know where to even begin. I've attached my workbook to this post.

    Background of Workbook:
    InvoicingForm Worksheet is used to pay off invoices.
    InvoiceDatabase stores Invoice Information.
    PaymentDatabase stores payment information.

    Two buttons:
    Add Invoice - Userform to enter invoices.
    Outstanding Invoices - Userform to show outstanding invoices.

    FYI - Need invoices before payments can be made. "Add Invoice" button is used to add the invoices. Then use the InvoicingForm to make payments to the outstanding invoices.

    Issue is the Oustanding Invoices Userform:
    I am trying to populate the first listbox with all of the oustanding "Customer Name" values based on the Company Name field (companyNameInput) from the Outstanding Invoices userform. To determine the oustanding invoices, it would look in the InvoiceDatabase and the PaymentDatabase to determine which invoices have balances. Then, after clicking a Customer Name from the list box, populate only the outstanding Invoice Numbers which are dependent on the Customer Name/Company Name. After that, populate the outstanding categories which are dependent on the Invoice Numbers/Customer Name/Company Name. Can anyone please help with this request?

    Thank you in advance!

    J
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    I'm taking a look at it, I recently made something similar!

  3. #3
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    Awesome! Thank you! Will be looking forward to your help!

  4. #4
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    I got it working, but i am a little confused about the category section. Do you play on having multiple payment lines for the same invoice?

  5. #5
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    Ok scratch that, I got that now. Do you plan on having multiple categorys on the same invoice?

  6. #6
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    Here is what I have so far. I just need a little more clarification on the purpose of the category box. Will there be more than one category per invoice?
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    Thank you again for your help.

    There can be multiple payments for one invoice. There will be just one category per invoice.

    There can be multiple customers though per company. We deal with one company but multiple representatives within the company and each of them can have multiple invoices open at one given time.

    I hope this makes sense.

    Thank you again for your help!

  8. #8
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    I think you are on the right track though! Just noticed though that the company names come up in the customer name list box. I was hoping for the customer names to populate based on the companyNameInput value.

    Sorry to make this even worse. But will only the outstanding invoices appear? For example, if the full payment was made for INV001, this will not appear in the Oustanding Invoices Userform. However, if a partial payment was made, the invoice will appear in the Oustanding Invoices Userform.

    Please let me know if this can be done. I have no clue if this can be done and how it can be done..

    Thank you.

  9. #9
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    Oh so you need a drop down by the company name?

  10. #10
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    I didn't think about that. I guess it would be better with a drop down menu for the company name.

  11. #11
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    what i was asking about the categories is , will there ever bee more than one in the list box? LIke two lines for the same invoice, but different categories?

  12. #12
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    Yes, there will be more than one category in the list box. I just checked and there are instances where there are two lines for the same invoice with different categories.

  13. #13
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    Ok, i have school tonight so I may not be able to get anything until tomorrow.

  14. #14
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    Works for me! Thank you again for your help!

  15. #15
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    I would greatly appreciate it if you can provide any thoughts on this.

  16. #16
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    Try this out and let me know. Sorry I was very busy this weekend!
    Attached Files Attached Files
    Last edited by GaidenFocus; 09-09-2013 at 10:52 AM.

  17. #17
    Forum Contributor
    Join Date
    12-19-2012
    Location
    Woodbridge, Virginia
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    Thank you so much for taking your time to help me with this. It looks great!!! Thank you again!!

  18. #18
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Populate Values in Multiple List Boxes based on Multiple Criterias

    No problem glad I could help.

+ 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. Replies: 4
    Last Post: 05-19-2015, 11:53 PM
  2. Populate cells on multiple sheets based on list
    By jhammond10 in forum Excel General
    Replies: 4
    Last Post: 06-30-2013, 04:16 PM
  3. Macros to update cell values based on multiple criterias
    By ccernat in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-22-2012, 03:25 AM
  4. Replies: 4
    Last Post: 01-31-2012, 04:36 AM
  5. Replies: 5
    Last Post: 07-21-2008, 07:49 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