Results 1 to 11 of 11

Excel Crashes when Sheet is Deleted

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-13-2010
    Location
    England
    MS-Off Ver
    Office 2016 365
    Posts
    211

    Excel Crashes when Sheet is Deleted

    I posted about this a while ago and i thought i'd worked around the issue but i haven't.

    Wasn't sure whether i was meant to revive the old thread or start a new one, sorry if i've done the wrong thing!

    This time i'm attaching a workbook - i've sanitised and simplified it.

    There is a control button on the "Instructions" tab that calls the macro delete_sheets. It should delete each sheet after the user defined administrative sheets.

    I have a couple of UDFs which calculate on the "Instructions" tab but the code is in their own module. The UDFs use the sheets.count calculation.

    When i click the "Delete All Scripts" button (in the attached i would expect it to delete two sheets BP 2 and BP 3). Excel Crashes completely.

    I'm sure the conflict is between having a UDF that counts sheets and command that deletes them but i'm stumped as to what a work around is. Any takers?

    Thanks,

    J
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 08-28-2013, 06:45 AM
  2. EXCEL: Undo If Particular Sheet Deleted
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2013, 01:19 PM
  3. Excel crashes everytime I copy sheet to a new workbook
    By este994 in forum Excel General
    Replies: 0
    Last Post: 03-06-2012, 12:42 PM
  4. Excel crashes when unhiding or hiding sheet
    By Lifesigns in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-26-2010, 05:07 PM
  5. MS EXCEL SHEET CRASHES WHEN VIEWING
    By Wally in forum Excel General
    Replies: 1
    Last Post: 09-07-2005, 03:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1