Analyze_This
Board Regular
- Joined
- Oct 29, 2008
- Messages
- 122
Hey guys,
I'm writing a macro to move a worksheet from one book to another. Here's the part that's throwing the 'subscript out of range' error:
Pretty simple. The "CC" is a variable (dim string) that I establish earlier in the code. Any thoughts?
I'm writing a macro to move a worksheet from one book to another. Here's the part that's throwing the 'subscript out of range' error:
Code:
Sheets("Navigation").Copy Before:=Workbooks(CC).Sheets(1)
Pretty simple. The "CC" is a variable (dim string) that I establish earlier in the code. Any thoughts?