rharri1972
Board Regular
- Joined
- Nov 12, 2021
- Messages
- 132
- Office Version
- 2019
- Platform
- Windows
Hello!
I have listbox1 and a multipage on userform1. The Multipage has several tabs but I am focused only on one at the moment which is "ORDERS".
Listbox1 is populated with values from a range on worksheet "Customers" . Range is A2:G & last row.
each row in listbox1 is a different customer.
In the multipage tab of "ORDERS" i have another Listbox. (Here after named "Listbox2")
What I am trying to accomplish is this...first i have the LISTBOX1 listselection property set to single.
when i select a certain customer I need to populate "Listbox2".
This list box will get its population from any one of multiple worksheets depending on the Customer ID selected in Listbox1.
When I enter a customer order and Select the "OK" button. All data from the Customer Order Form is sent to a worksheet to be stored. The worksheet it is sent to, depends on that same Customer ID.
JUST TO NOTE: I have already created said worksheets with tabs titled after each customer id number.
The population of "Listbox2" will be determined by the Customer ID selected in ListBox1. Depending on this Customer ID in Listbox 1, it will determind the "activesheet" and then the range to populate "Listbox2" with.
To Clarify... Listbox 1 is populated with Customer ID, Customer Name, City, and State.
Lord i hope this make sense.
Thanks for any help!
I have listbox1 and a multipage on userform1. The Multipage has several tabs but I am focused only on one at the moment which is "ORDERS".
Listbox1 is populated with values from a range on worksheet "Customers" . Range is A2:G & last row.
each row in listbox1 is a different customer.
In the multipage tab of "ORDERS" i have another Listbox. (Here after named "Listbox2")
What I am trying to accomplish is this...first i have the LISTBOX1 listselection property set to single.
when i select a certain customer I need to populate "Listbox2".
This list box will get its population from any one of multiple worksheets depending on the Customer ID selected in Listbox1.
When I enter a customer order and Select the "OK" button. All data from the Customer Order Form is sent to a worksheet to be stored. The worksheet it is sent to, depends on that same Customer ID.
JUST TO NOTE: I have already created said worksheets with tabs titled after each customer id number.
The population of "Listbox2" will be determined by the Customer ID selected in ListBox1. Depending on this Customer ID in Listbox 1, it will determind the "activesheet" and then the range to populate "Listbox2" with.
To Clarify... Listbox 1 is populated with Customer ID, Customer Name, City, and State.
Lord i hope this make sense.
Thanks for any help!