Hi Everyone,
I'm new to VBA and to this forum. I have written a piece of code and it keeps giving me a runtime error 9. Can somebody explain me why it is.
The purpose of the macro is to create a new file based on the value of a cell and then copy some worksheets from the source file to the target file and then, using advanced filter, copy some rows to the target file.
At first i tried to assign all worksheet and workbook names to variables but then i got runtime error 9's for almost every line.
Can somebody please help, i'm looking now for 3 hours plus to solve the problem but i can't make it work. And if possible, to make it work so that the names of worksheets and workbooks are variables.
The runtime error i get know is with
Many thx in advance!!
Bookmarks