runtime error 380 invalid property value

adambc

Active Member
Joined
Jan 13, 2020
Messages
373
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I've got a UserForm with a ComboBox that works perfectly when I write a new record ...

The ComboBox.List is a list of numbers ...

But when I try to load the record I've just created back into the UserForm, when the code gets to the ComboBox, I get this runtime error ...

But when I put "MsgBox ComboBox.value" immediately before I load the ComboBox.value it displays the correct value ...

Can't figure it out - any ideas please?

Thanks ...
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
It might help if you posted the code in question... ;)
 
Upvote 0
It might help if you posted the code in question... ;)
I've found the problem!

The ComboBox Style was set to "2 - fmStyleDropDownList" - changed it to "0 - fmStyleDropDownCombo" and all was well ...

Will need to add code to change the Style before loading the record and changing it back so that the ComboBox behaves as intended when users edit it ...
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,232
Members
449,092
Latest member
SCleaveland

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top