+ Reply to Thread
Results 1 to 5 of 5

Corrupting File (Row Insert / Delete) - methods to resolve

  1. #1
    Forum Contributor
    Join Date
    10-22-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    162

    Corrupting File (Row Insert / Delete) - methods to resolve

    Hi,

    I have an Excel file that has been in use now for about 2 years. It contains a reasonably large amount of data (currently c. 10mb) and macros.

    Originally the file was created in 2003 and was converted to 2010 .xlsm file at the beginning of this year. It's been running fine, but a bit slow on row insert / deletion (appears to be a known issue after 2003 where you can't turn the calculation to manual).

    Groups of rows are moved between sheets ("Open" to "Closed") before being archived to another workbook. In the last week, completing one of these moves (via vba code - copy, insert copied, delete original) has resulted in the workbook failing to open. Crashes Excel without any warning message. I can't even get it to open in safe mode.

    The problem appeared to relate to one specific sheet so I set up some code to copy the data in the sheet and paste special into a new sheet, cell by cell, which took some time (14k rows). I deleted the suspect sheet and renamed the new version. No code is contained within the worksheet and all sheets are referred to by name.

    It's no longer crashing on opening, but hangs (for over half an hour) when inserting a row and then eventually gives the error "System Call Failed", but has inserted the row. Obviously not usable in this state.

    I'm after some general advice as to what I can do. Is there anything I can look at to try and pin down why it's suddenly become so unstable? Failing that, how would it be best to go about duplicating an entire workbook?

    Any advice appreciated - I'm running out of ideas...!

    Thanks, TC

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Corrupting File (Row Insert / Delete) - methods to resolve

    Hi,

    Do you have any conditional formatting in the workbook? Is it still very slow if you convert the table to a range?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Contributor
    Join Date
    10-22-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    162

    Re: Corrupting File (Row Insert / Delete) - methods to resolve

    Apologies for the delay.

    You may well be onto something here. There shouldn't be any conditional formatting but there is and now I've removed it the insert / delete row is much, much quicker. I can also still open the file, bonus!

    I'm working on a slimmed down version so I'm going to apply the same 'fix' to the main file and see if that sorts it out. I'll report back.

  4. #4
    Forum Contributor
    Join Date
    10-22-2012
    Location
    London, UK
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    162

    Re: Corrupting File (Row Insert / Delete) - methods to resolve

    Yep - that sorted it! I've only been able to remove about 75% of the conditional formatting so far(the rest will need some code to replace the same functionality) but performance is quicker and it's stable again. I recreated all the issues that were causing it to fall over an it's handled it all fine.

    I'll keep this in mind for the future!

    Thank you - you saved me a lot of work in trying to replicate the file from scratch!

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Corrupting File (Row Insert / Delete) - methods to resolve

    You're welcome, and thank you for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. objAttachments.Item(i).SaveAsFile Corrupting .csv file
    By toose88 in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 06-04-2016, 12:58 PM
  2. [SOLVED] Understanding range objects used with .delete/.resize/.offset methods
    By joe31623 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-21-2016, 01:05 PM
  3. [SOLVED] Can't delete named ranges that are (probably) corrupting a document
    By Travisty in forum Excel General
    Replies: 3
    Last Post: 12-17-2015, 06:53 AM
  4. Excel is corrupting my file after saving a worksheet I ran my macro on??
    By radius1080 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2015, 10:13 AM
  5. Replies: 6
    Last Post: 10-02-2014, 06:31 AM
  6. Worksheet_Change corrupting formula
    By blastronaut in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-13-2011, 04:27 PM
  7. [SOLVED] Formatting corrupting the workbook
    By MSweetG222 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-14-2006, 01:00 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