The Dutchman
Board Regular
- Joined
- Apr 10, 2008
- Messages
- 72
I am working on a userform where a client's profile can be edited. A client's name is selected and then a number of textboxes and listboxes are automatically populated from the information from that client last record on file.
There are 3 listboxes in the userform that are populated from 3 different cell ranges when the userform is activated.
When I attempted to populate the listbox (which was populated already at activation) with the text/value from a clients record I get the following message:
"Could not set the text property. Invalid propert value."
Just an FYI... the value/text from the cell I'm pulling data and pushing to the various ListBoxes corresponds with data that are in the listboxes when they are populated when the userform is activated.
The code I used is as follows:
Any ideas out there?
There are 3 listboxes in the userform that are populated from 3 different cell ranges when the userform is activated.
When I attempted to populate the listbox (which was populated already at activation) with the text/value from a clients record I get the following message:
"Could not set the text property. Invalid propert value."
Just an FYI... the value/text from the cell I'm pulling data and pushing to the various ListBoxes corresponds with data that are in the listboxes when they are populated when the userform is activated.
The code I used is as follows:
Rich (BB code):
Rich (BB code):
Me.ListBox1.Text = Range(caddress).Offset(0, 23).Value
Me.ListBox2.Text = Range(caddress).Offset(0, 13).Value
Me.ListBox3.Text = Range(caddress).Offset(0, 14).Value
'*** AS WELL I TRIED ****
Me.ListBox1.Value = Range(caddress).Offset(0, 23).Value
Me.ListBox2.Value = Range(caddress).Offset(0, 13).Value
Me.ListBox3.Value = Range(caddress).Offset(0, 14).Value
Any ideas out there?