Hey guys.
I got a problem and I just cannot find a solution to it.
What I want my code to do is:
1. Autofilter a list
2. Select all values in column "B" in the filtered list
3. Copy it to another sheet.
The code runs when I change a ComboBox and the combobox value is the criteria used in the autofilter.
Here is my code so far:
The code crashes when I try to Copy filtered range.
I get this error message:
Run-time Error '1004':
Method 'Range' of object '_Worksheet' failes
I get this error no matter what I do there.
Even when I try something like this it still fails:
Any ideas? The sheet or workbook isnt password protected or anything.
UPDATE:
If I make a new macro with the code:
and use the Call function to run that code it all works fine.
Very weird.
Bookmarks