Hello,
I am having a problem populating a list using the following code:
------------------------------------------------------------------------------------------------------------------------------------------
Private Sub savedQuoteDetails_DropButtonClick()
savedQuoteDetails.List = Sheets("Input_Sheet_List").ListObjects("Input_Sheet_List").ListColumns(1).DataBodyRange.Value
End Sub
-------------------------------------------------------------------------------------------------------------------------------------------
The combo box = savedQuoteDetails
The sheet = Input_Sheet_List
The table = Input_Sheet_List
I am trying to populate this list from the 1st column of the table.
The code works perfect as long as there are at least 2 rows of data, however if I clear the table or only have 1 row of data in the table the code does not work. I get a "Run-time error '381': Could not set the List property. Invalid property array index." message.
Can this issue be resolved?
Thanks in advance,
Greg
Bookmarks