Heya,
I'm trying to copy data thru VBA. Specifically, I want to copy only those rows whose corresponding cell in the date column (column "A") has the month text that I'm looking for in a specific cell range - the Criteria Range. In this case, it'd be cell "Z1". If "Z1" says April, then only copy those rows whose date column contained a corresponding date containing the string "April". The macro is run from a macro file with a button and a field where the month name is entered. The copying is done from a separate file.
Right now, the copying seems to be working fine but regardless of what I type in Z1 as the Criteria Range, I still get ALL rows. I'm not sure what the issue is.
Here is the code. I'm trying to solve something that was left over from a colleague who left, and they didn't comment, nor apply proper naming conventions but I still hope it will be readable. I will definitely correct this as soon as this issue is resolved.
Any help would be appreciated. Thanks!
Bookmarks