Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a user form that contains a combo box.
The rowsource is a named range in Excel. If I put the named range in the properties box of the combobox on the form, the form and combobox control appears when called but the combo box is blank. The row souce is on a different worksheet inthe same workbook from the sheet that is active when the form is called. I have tried renaming the rowsource when the form is initialized as follows (Iterations commented out). Private Sub UserForm_Initialize() Dim ws As Worksheet Set ws = Worksheets("Imp") 'Me.ctrlMajorEventList.RowSource = "Imp!$d$1:$d$32" (shows blank data against current weeksheet, where data exists. 'Me.ctrlMajorEventList.RowSource = MajorEventList (shows Blank data, major eventlist is a rangename) 'Me.ctrlmajorEventList.Rowsource = "''Major events'!b1:b30" ) (Shows blank data agianst a separte sheet where data exists) End Sub Whether I use: Me.ctrlEventList.RowSource = MajorEventList or Me.ctrlEventList.RowSource = "'Major Events'!b1:b30" I get no error message, but I also get no data showing in the form. I call the form using: frmSelectMajorEvent.Show When it opens, it should initialize itself, right? Or do I need to open the form and also call the initalize routine to initialize the data source? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Basic Pivot Table question re adding rows to source data and refre | Excel Discussion (Misc queries) | |||
How change link source in long formula when source moved | Excel Programming | |||
How can i set the source-data-range of pivottable2 to the source . | Excel Discussion (Misc queries) | |||
How can I change the source of my extern source database in an ex. | Excel Programming | |||
Pivot table source data question | Excel Programming |