Userform ComboBox from Index Match formula result

crun2075

New Member
Joined
Jun 6, 2020
Messages
18
Office Version
  1. 365
Hello there all
I have a combobox named cboTest2D. cboTest2 Dwill obtain its data from the a index match function.

The formula itself works flawlessly but having trouble getting to work in a userform combobxo. The closet I've come is:

Dim ReturnVal As Variant

ReturnVal = Evaluate("INDEX(ValidationMenu!B2:DH8,,MATCH(Data,ValidationMenu!B1:DH1,0))")

Me.cboTest2D.List = ReturnVal

but this is resulting in a run time error 381 could not set the list property invalid property array index. The funny thing is I actually got this to work
but for some reason the sheet didnt save.

Could any one perhaps push me in the direction to getting this to work? Thanks for reading.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
What is Data in the formula?
 
Upvote 0
Is it a defined range found in the Name manager?
 
Upvote 0

Forum statistics

Threads
1,213,485
Messages
6,113,931
Members
448,533
Latest member
thietbibeboiwasaco

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