Hi, I have a userform with a combobox and listboxes, coded as shown below. See Excel file in attachment.
The userform is linked to a named table in worksheet "Data". The code returns an error when the named table is empty, ie. when the ListIndex = -1, ie. when the DatabodyRange is 0.
I cannot seem to figure out a way to make this code errorproof when the table does not contain any data/listrows. Do any of you know?
![]()
Please Login or Register to view this content.
Bookmarks