Combo Box rowsource issues

Meat4grinder

Board Regular
Joined
May 20, 2012
Messages
66
Ok i have tried everything i could think of, need to populate a combo box with 2 different option but need the row source changed,

Code:
Me.IP_CB_BracketUpgrade.RowSource = "=List_ABracket"
Me.IP_CB_BracketUpgrade.RowSource = "List_ABracket"
Me.IP_CB_BracketUpgrade.RowSource = List_ABracket

I have even tired

Code:
Dim List  As string
List = "=List_ABracket"
Me.IP_CB_BracketUpgrade.RowSource = List



Error:
Run-time error '380': Could not set the rowsource property. Invalid property value.

however in most cases i can step thru it using F8 but code will not run thru it.

Working code below
Code:
Select Case ComDoorInf.Range("Drawn_bracketType").Value        Case "A"
            For i = 13 To 15
                SizeSearch = ComDoorInf.Cells(i, 1).Value
                Set WRng = CommWB.Sheets(Tarsheet).UsedRange.Find(SizeSearch, , xlValues, xlPart)
                    If Not WRng Is Nothing Then
                        RowNo = WRng.Row
                        ComDoorInf.Cells(i, 4).Value = CommWB.Sheets(Tarsheet).Cells(RowNo, TarColNo).Value
                    End If
            Next i
                Me.IP_CB_BracketUpgrade.Visible = True


                Me.IP_CB_BracketUpgrade.RowSource = "List_ABracket"
        Case "B"
            For i = 16 To 17
                SizeSearch = ComDoorInf.Cells(i, 1).Value
                Set WRng = CommWB.Sheets(Tarsheet).UsedRange.Find(SizeSearch, , xlValues, xlPart)
                    If Not WRng Is Nothing Then
                        RowNo = WRng.Row
                        ComDoorInf.Cells(i, 4).Value = CommWB.Sheets(Tarsheet).Cells(RowNo, TarColNo).Value
                    End If
            Next i
                Me.IP_CB_BracketUpgrade.Visible = True
                Me.IP_CB_BracketUpgrade.RowSource = List_BBracket
                
        Case "C" 'Do nothing
            Me.IP_CB_BracketUpgrade.Visible = False
    End Select
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Arg found the issue - i had 2 excel files open - the other one was in it fore front, once i put WorkingWB.Activate at top of script error stopped.
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,520
Members
448,968
Latest member
Ajax40

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