I am lost, after reading oodles of suggestions on forums, I still don't understand why this code does not work:
Code:
Private Sub UserForm_Initialize()
Me.ComboBoxService.List = Worksheets("LookupList").Range("ChartOfAccounts").Value
End Sub
My named range ChartOfAccounts is refers to: =OFFSET(LookupLists!$A$2, 0, 0, COUNTA(LookupLists!$A:$A)-1,1)
I receive: Run time error # 1004 "application-defined or object-defined error"
I searched that too, but could not understand the solutions offered to make it work in my example.
Whereas this code works:
Code:
Private Sub UserForm_Initialize()
Me.ComboBoxService.List = Worksheets("LookupList").Range("a2:a100").Value
End Sub
I prefer to use the dynamic range in case my list grows over 99 records, and to learn to work with very large lists, say 500 or 5000.
Any help is appreciated.
Code:
Private Sub UserForm_Initialize()
Me.ComboBoxService.List = Worksheets("LookupList").Range("ChartOfAccounts").Value
End Sub
My named range ChartOfAccounts is refers to: =OFFSET(LookupLists!$A$2, 0, 0, COUNTA(LookupLists!$A:$A)-1,1)
I receive: Run time error # 1004 "application-defined or object-defined error"
I searched that too, but could not understand the solutions offered to make it work in my example.
Whereas this code works:
Code:
Private Sub UserForm_Initialize()
Me.ComboBoxService.List = Worksheets("LookupList").Range("a2:a100").Value
End Sub
I prefer to use the dynamic range in case my list grows over 99 records, and to learn to work with very large lists, say 500 or 5000.
Any help is appreciated.