funkmonsteruk
IS-IT--Management
I have a userform attached to an Excel workbook which allows the user to open another workbook and insert its single page. It was working fine until two days ago when i started getting a "run-time error '9' subscript out of range" error message.
The code breaks down when i try and insert the worksheet from the newly opened workbook into the workbook with the form.
This is the code i'm using for this part of the operation, and it's breaking on the first line:
lastsheet = Workbooks("Estate-taps-weekly"
.Sheets.Count
Sheets(1).Move After:=Workbooks("Estate-taps-weekly"
.Sheets(lastsheet)
Does anybody have any suggestions?
The code breaks down when i try and insert the worksheet from the newly opened workbook into the workbook with the form.
This is the code i'm using for this part of the operation, and it's breaking on the first line:
lastsheet = Workbooks("Estate-taps-weekly"
Sheets(1).Move After:=Workbooks("Estate-taps-weekly"
Does anybody have any suggestions?