+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 crashes upon saving

  1. #1
    Registered User
    Join Date
    06-23-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Excel 2007 crashes upon saving

    Hello all,
    I have been programming with VBA on Excel 2007 for fun for some time.

    I was looking around at my code, clicked the save button, and then closed the "view macro" box. Out of the blue, excel immediately crashed with the "excel is not responding" message.
    Now, whenever I try to save the worksheet, Excel crashes. If I don't do anything but try to close the worksheet, every button in excel is grayed out and the grid is completely black. The only button that works is the top-left circular button, but all options there are greyed out. The only way to immediately close the worksheet is to go into Task Manager, Process, and kill the EXCEL.EXE process.
    This came out of the blue, and I've been searching online for a while trying to solve this problem. I have yet to find anything conclusive...

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Excel 2007 crashes upon saving

    When freaky things like this happen, especially when debugging, I tend to close all instances of Excel from the task manager (there may be more than one still there from previous sessions). If this doesn't work, I restart the computer. If still no go, I copy all the vba code to a text files and recreate a new workbook. If still the problem doesn't go away then I circulate the workbook and ask for help as the problem may actually be with my installation of Excel, windows, etc.

    Try and let us know.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Excel 2007 crashes upon saving

    Hi JM,

    I remember getting problems like this when in debug mode and stepping through code. If the code is stopped many of the icon's are grayed out. I've also done stupid things like stopped allowing events or screen updates with the code and things don't work. Look for Application.ScreenUpdates = False and Application.AllowEvents = False to insure you are back to normal, before trying to continue on.

    If it looks like a "Save" is the problem, perhaps you are tying to save to an invalid location. Look in your code for this type of problem also.

    Hope this helps.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    06-23-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Excel 2007 crashes upon saving

    Restarting my computer did not work, and I saw no other instances of excel in the task manager.
    I did, however, copy my original macros into a word document and pasted them in to a new, blank workbook.
    Fortunately, excel didn't crash, so I think it might be the worksheet itself.
    I did have a good collection of cells colored, and quite a few pictures as well.
    The worksheet document does take a while to load up, as well.

    Thanks to all who have responded with suggestions!
    Last edited by JM967; 06-23-2013 at 07:12 PM.

  5. #5
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Excel 2007 crashes upon saving

    When you don't want to lose the cell formatting, etc., but remove all the macros, you can save the macros (as you did) in text format in a word editor and then save the excel file as .xlsx. This will strip it of all vba macros and code. Then you can try to re-create the modules, userforms, etc. It sometimes works. Another thing that has worked in the past is to decompile/ decompress/ recompile the vba code. MVP Orlando has a free program I use to do this.

    Hope this helps.

    abousetta

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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