I have a workbook which has, amongst many others, 3 sheets which each have a named range I want to copy and paste into another, new, workbook.
The code I am trying to use was written several years ago and has worked without problems till now.
It fails at the second use of the do loop at the line marked ******* with a message "Subscript out of range" Perhaps there is no sheet2 ?![]()
Please Login or Register to view this content.
I think that new workbooks used to open with 3 sheets when the code was written but perhaps with only 1 sheet now?
I have not manged to solve this problem and would like some help please.
I can confirm that there are three sheets with the names in the DO loop: and that these 3 all have a named range "Budget"
On the first loop the new work book has been created and the Range "LabelBudgetA".Budget has been copied and pasted.
The failure happens on the second loop.
Thanks in anticipation
John
Bookmarks