Select a ListBox value with code

R

Riddler

I have a user form that needs to transfer info to another one. I get
the text, like "ABC Supply" from UserForm3.TextBox11 and try setting it
equal to UserForm1.ListBox4 on the new userform. My problem is that
this works intermittently. Sometimes UserForm1.ListBox4 will show "ABC
Supply" and have it highlighted but when I check
UserForm3.TextBox11.Text it shows "" as the text and the value. Both
listboxes get there list generated from the same list so there are no
spelling problems it should encounter. The odd thing is that this work
part of the time.

I would appreciate any help.
Thanks
Scott

UserForm1.ListBox4.Text = UserForm3.TextBox11.Text 'Supplier being
quoted
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top