I have a macro that cycles through sheets in a workbook and deletes them. However, excel crashes on the Delete command and i don't know how to fix it.
I have an Index page (excluded from the delete process) at the start of the workbook.
This index page is basically a table of contents. It lists all the sheets in the workbook, the sheet name, and the value of a specific cell in the sheet. This is done using UDFs. However, the UDFs use the Sheets object of the workbook so when my other macro goes through the delete process i think these UDFs are crashing excel.
I've tried adding
to the start of my "delete" macro but it doesn't help. Is there anything i can do or am i going to have to rethink my solution?
Many thanks
J
The Culprits FYI:
Function TESTTITLE(IndexNumber As Integer, NamedRange As String)
EDIT: An example formula from my index page
Bookmarks