Hi all:
In Excel, I want to programmatically group and move all the sheets in a workbook to a new book; however, my ability to comprehend arrays is minimal in VB.
This is what the code would look like (using the macro recorder).
The number of sheets will vary, and I don't know how to concatenate an array.
Any help would be greatly appreciated.
Thanks,
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
In Excel, I want to programmatically group and move all the sheets in a workbook to a new book; however, my ability to comprehend arrays is minimal in VB.
This is what the code would look like (using the macro recorder).
Code:
Sheets(Array("62321MAIL", "Template")).Select
Sheets("Template").Activate
Sheets(Array("62321MAIL", "Template")).Copy
The number of sheets will vary, and I don't know how to concatenate an array.
Any help would be greatly appreciated.
Thanks,
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.