A
AlForester
Why does the following code produce an error 13 (Excel 2007) after the sheet
is deleted and when the end function statement is executed?
Public Function SheetDelete(varSheet As Variant) As Boolean
' var sheet is the sheet object to delete, not the index or name
SheetDelete = varSheet.Delete
End Function
The sheet is deleted but the runtime error occurs. The function returns the
correct value of the delete.
Any thoughts would help.
is deleted and when the end function statement is executed?
Public Function SheetDelete(varSheet As Variant) As Boolean
' var sheet is the sheet object to delete, not the index or name
SheetDelete = varSheet.Delete
End Function
The sheet is deleted but the runtime error occurs. The function returns the
correct value of the delete.
Any thoughts would help.