ListBox Bummer

B

Bruce Brown

When I tried to write text to listboxes before showing a userform,
like so ...

Me.MyListbox.Text = "Hello, world"

.... it gave me this message:

Runtime error '380'
Could not set the Text property. Invalid property value.

When I blocked out the change-text step, the userform displayed but
the cursor was locked out of the listboxes even though I had SetFocus
on one of them. Tabbing did no good; the listboxes remained
inaccessible.

This has never happened before. Yesterday's listboxes work fine;
today's, created exactly the same way, are DOA. I solved the problem
temporarily by pasting in some working listboxes from an older
userform, but that's no long-term fix.

Anyone have a clue as to what's going wrong here? Would greatly
appreciate it.
(Word 2002, by the way.) Thank you very much. - Bruce

============================================================================
 
B

Bruce Brown

Many thanks, Doug. I'd forgotten why it's called a listbox. Duh. Thanks again.

- Bruce
 

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