The attached workbook attempts to illustrate a problem I have not been able to solve
There are 2 data worksheets TAPEBUDGETA and LABELBUDGETA and a UTILITIES sheet.
The problem I am having shows when the button marked FILE on UserForm1 is clicked. This button fires off code which has the following purpose.
It creates a new workbook
It takes a range from three worksheets (only two in the down load) in turn and copies it. It creates worksheet in the new work book and names it. It then pastes the copied data as values. For the second and third sheets it has to create a new worksheet.
I get an error every time at Set wsB =wbB.Worksheets(2).
I must have coded wrongly somewhere. I hope that someone can see where and put me right.
John
Bookmarks