Michaels
Active Member
- Joined
- Apr 2, 2009
- Messages
- 404
Hello
I have 2 Listboxes (single-select 1 column) on two Userforms and their row sources are same.
Listbox1 is on Userform1 and Listbox5 on Userform5. Userform5 also has a command button.
When I select a row on Listbox 5 and then click CommandButton1, how can the same row be selected on Listbox1.
I have tried the below code but to no avail.
Thank you for your help.
I have 2 Listboxes (single-select 1 column) on two Userforms and their row sources are same.
Listbox1 is on Userform1 and Listbox5 on Userform5. Userform5 also has a command button.
When I select a row on Listbox 5 and then click CommandButton1, how can the same row be selected on Listbox1.
I have tried the below code but to no avail.
Code:
Userform1.ListBox1.Value = Userform5.ListBox5.Value
Thank you for your help.