Hello,
In a sub, I create and format a spreadsheet. Then I call a function that pastes values in this sheet. So I call one last function that creates a graph from these values and, finally, I delete the sheet.
In each sub/function, I use "On Error GoTo OnErrorCase" to a message. However, if an error occurs within the sub inside the main one, for example (that one that paste data in the sheet), Excel stops, therefore an important part (delete the worksheet at the end) will not run.
That is, the "On Error GoTo" in the main subroutine doesn't include problems of internal routines. So if I want to "go back" (delete the worksheet in case of error), I must use "mysheet.delete" within each error treatment?
Bookmarks