Currently I am making user form on Excel VBA and using combobox. I have range(A2:A61) named "Division" in which was included divisions of company. When I add this data into combo row source, I put named range - Division. But on the other hand divisions are dynamic, I mean new divisions are created during the year.
The problem is when I created new division I can see its name on Cell A62 but it doesn't include range - named division. As the result I can't see updated combobox list.
Firstly I tried to choose range as (A:A) and called it division. In this case I can see updated combobox list but the blank cells within range makes other problems for me.
Secondly I had this code and I tried to use it as Row Source for combobox but came out error.
Set Division = Worksheets("DataCMB").Range(Range("E2"), Range("E1048576").End(xlUp))
Please, help to find out the issue.
Range("E2")andRange("E1048576")are linked to the active sheet, not toWorksheets("DataCMB")- Vincent GSet Division = ...,Divisionis not a named range, it is a Range variable. - Vincent G