Hi, i want to additems to combobox whenever my userform initialize.
I chose to use the list property as i have a very long list and using .additem not as efficient.
What i want my program to do is go to a particular column, then get any data from that column (excluding the column name) and add it to my combo box.
Basically i think my program logic works, but i am not so familiar with excel practices.
main issue is why this 2 lines of code will fail me:
Below is the coding i got.
error occurs when my productA list is empty. so i debugged and simplified the code to simulate situation when list should be empty and when list contains 1 item:
error occurs when list is "empty".
no error occurs when at least 1 item exist.
Btw the error message is
Run-time error '381'
Could not set the List property. Invalid property array index.
Anyone knows why error occurs when productA is set to Range("P2", "P2")? Thanks alot.
Bookmarks