Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Excel 2007 crashing whenever one sheet is changed/edited

Latest post Wed, Nov 10 2010 2:14 PM by zlatan24. 2 replies.
  • Tue, Jul 6 2010 2:20 AM

    • SmithEJ
    • Not Ranked
    • Joined on Tue, Jul 6 2010
    • Posts 1
    • Points 21

    Excel 2007 crashing whenever one sheet is changed/edited

    Hope this is the right forum to be asking this in...I have an Excel workbook that contains four macros created with the built in recorder in Excel. The macros are all the same except for which of four sheets they perform their actions on. Basically what the macros do is add a row to Sheet2, go back to Sheet1 and copy a row of data, return to Sheet2 and paste that data into the row that was added, write some formulas in a couple of empty cells in that row, and then return to Sheet1.

    The only thing that changes between the macros is if it goes to Sheet2, Sheet3, Sheet4, or Sheet5 (depending which macro is run). Three of them work perfectly and have continued to work even after the problem one started crashing Excel with the error message "run-time error '-2147417848 (80010108)': method 'formular1c1' of object 'range' failed".

    My first thought is that the issue was because the sheet associated with the failing macro has over twice as many rows of data as the other sheets, but I used their macros to add the same number of rows to their associated sheets, and even after adding more rows than are in the sheet associated with the problem macro, they continued to function.

    Ever since this error message started coming up every time I use that macro, anything I try doing that uses that data sheet crashes Excel... so I guess my question is, is the problem in my macro or is that sheet corrupt? If it is the sheet that is corrupt, any suggestions on how I might save the data entered into it without accidentally copying whatever is corrupt to the new version? Or if the macro is the issue, what should I post in the VB forum to assist someone in hopefully helping me figure out how to fix it!

    • Post Points: 21
  • Thu, Jul 8 2010 8:42 PM In reply to

    • Jim Cone
    • Top 10 Contributor
    • Joined on Tue, Jan 15 2008
    • Portland, Oregon - USA
    • Posts 233
    • Points 3,315

    Re: Excel 2007 crashing whenever one sheet is changed/edited

     

    Does the problem sheet have any merged cells or is it protected?
    Are there any charts, pictures, buttons or filters applied on the problem sheet?
    Is the formula possibly trying to reference a cell not on the sheet?
    Where is the code located?... personal.xls, sheet modules, general module, add-in.
    If the four macros are the same except for the sheet name, why not use just one macro with "ActiveSheet" replacing the sheet name?
    '--
    Jim Cone
    Portland, Oregon USA
    xlCompanion Excel add-in

     

    • Post Points: 21
  • Wed, Nov 10 2010 2:14 PM In reply to

    • zlatan24
    • Not Ranked
    • Joined on Wed, Nov 10 2010
    • Posts 1
    • Points 5

    Re: Excel 2007 crashing whenever one sheet is changed/edited

    I have many friends and they like to work with ms excel, but one day I stumbled on an disagreeable issue. I could solve it for some seconds and I hope that this utility help in like situations as well - how to recovery corrupted Excel file

    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright Excel User Group and the relevant contributors, 2010. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.