Could not set the RowSource property. Invalid property value

Denny57

Board Regular
Joined
Nov 23, 2015
Messages
220
Office Version
  1. 365
Platform
  1. Windows
I have tried to add a range into a combobox both by using VBA code and control properties but cannot get the details to be accepted.

When I add a range (eg Sheet1!M3:M11) in the control properties (Row Source) I get the abovre error message

When I try to add the code using VBA in the initialize macro, the User Form will not open and an error is reported at the module level, which from experience means that there is a generic error in the code. As soon as I remove the code, the user form opens.

Sample Codes which stop the user from from opening

Dim listdetails as Variant
'listdetails = Range("Sheet2!M3:M11")
'cbo1.List = listdetails
ALSO
Dim listdetails as Variant
'listdetails = Range("Sheet2!M3:M11")
'cbo1.RowSource= listdetails

Any help would be appreciated
 
Well, in absence of what needs to be seen but still isn't, I wish you luck but I'm going to withdraw.
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

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