I'm trying to build a code, to be run from a button, that copys the contents of one sheet and pastes it in another, then runs a code that deletes any rows that do not meet my specified criteria.
I recorded a macro that does the copy paste function, which runs fine on its own, and i have the code that deletes the rows, on its own, with runs fine. If I put the copy code in before the delete code, we get runtime error 1004.
Here is the code that is giving me grief:
The line with "Range("B2:D170").Select" is the line that becomes highlighted when the debug button is pressed.![]()
Please Login or Register to view this content.
I have searched google extensively for a solution, but all seem to be irrelevant to my job.
Could i call the prerecorded macro from the button, before the delete code is run? How would i do this?
Regards,
Ryan Akers
Bookmarks