rharri1972
Board Regular
- Joined
- Nov 12, 2021
- Messages
- 132
- Office Version
- 2019
- Platform
- Windows
Hello!
I have a userform (CustomerActivityCenter) with Listbox1 that is populated with several customers with multiple columns.
On the same userform I have a command button (Insert Order)
The listbox is set to single select.
I will find my customer in the list and click on it or highlight it and then I will click the INSERT ORDER button.
Upon clicking the button:
How can i say with vba, use the value in Listbox1.index (0) (first column of data) as it's reference value and then find the same value in the active worksheet? The activesheet is titled "Customers" and the reference column is "A". I have the code inserted in the command button to activate worksheet "Customers".
There will also be a userform (CustomerOrderForm) that will be opened with the click of the same (Insert Order) button.
When the userform(CustomerOrderForm) initializes... I would need data from the row that was previously found on the active worksheet to populate 6 different textboxes on the Customer Order userform.
Column A value to textbox14
Column B value to textbox15
Column C value to textbox16
Column D value to textbox17
Column E value to textbox18
Column F value to textbox19
Any help will be greatly appreciated!!
I have a userform (CustomerActivityCenter) with Listbox1 that is populated with several customers with multiple columns.
On the same userform I have a command button (Insert Order)
The listbox is set to single select.
I will find my customer in the list and click on it or highlight it and then I will click the INSERT ORDER button.
Upon clicking the button:
How can i say with vba, use the value in Listbox1.index (0) (first column of data) as it's reference value and then find the same value in the active worksheet? The activesheet is titled "Customers" and the reference column is "A". I have the code inserted in the command button to activate worksheet "Customers".
There will also be a userform (CustomerOrderForm) that will be opened with the click of the same (Insert Order) button.
When the userform(CustomerOrderForm) initializes... I would need data from the row that was previously found on the active worksheet to populate 6 different textboxes on the Customer Order userform.
Column A value to textbox14
Column B value to textbox15
Column C value to textbox16
Column D value to textbox17
Column E value to textbox18
Column F value to textbox19
Any help will be greatly appreciated!!