I have a number of named ranges in my workbook. I have a subroutine that I need to call repeatedly and need to pass one of these names as an argument to the subroutine. Here is my code right now:
![]()
Please Login or Register to view this content.
If it's not obvious, the idea is to work through a list of named ranges, sending each one individually to a subroutine called copyPaste. copyPaste first looks to another workbook (that will also contain a range with the exact same name), and copy the contents of that range onto the clipboard. Then it pastes these contents (as values) into the range in the active workbook. Conceptually pretty simple.![]()
Please Login or Register to view this content.
Right now, I am stuck passing the range name as an argument. I am getting a run-time error "Application defined or object defined error".
Can someone see what I am doing wrong?
Thanks!
Bookmarks