I am very new to VBA code and I have written the following to filter by the selected criteria, copy/paste into another sheet, or if the selection is not found then to clear contents and stop. I wanted to have the top value in the listbox selected by default, however, the autofilter doesn't always find the default value to return even though it is the same for all listboxes.
The criteria in field 2 is selected from listboxes with the following code:
I have been unable to figure out why this is happening, any ideas?
Bookmarks