+ Reply to Thread
Results 1 to 14 of 14

One sheet made my file go from 3000 kb to 35,000 kb

  1. #1
    Forum Contributor
    Join Date
    05-06-2017
    Location
    London, United Kingdom
    MS-Off Ver
    2016
    Posts
    281

    One sheet made my file go from 3000 kb to 35,000 kb

    Hi guys, is there anyway to find out why one sheet in my workbook has suddenly made my excel workbook go from 3,000 to 35,000?

    like anyway to find out what is causing the influx in kb?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: One sheet made my file go from 3000 kb to 35,000 kb

    First, CLEAR, then DELETE all unused rows and columns.

    Then save, close, and reopen.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    05-06-2017
    Location
    London, United Kingdom
    MS-Off Ver
    2016
    Posts
    281

    Re: One sheet made my file go from 3000 kb to 35,000 kb

    Every time i select some rows i believe to be empty then clear contents or delete, i get "Excel cannot complete this task with available resources. choose less data or close other applications. continue without undo?"

    Its like all 1,048,576 rows are scrollable like its there. but i cant delete or clear because of the above error.

    Cant delete any single row/column , or multiple.
    Last edited by LeeBillington; 07-09-2018 at 03:30 PM.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: One sheet made my file go from 3000 kb to 35,000 kb

    So save a backup and continue without Undo.

  5. #5
    Forum Contributor
    Join Date
    05-06-2017
    Location
    London, United Kingdom
    MS-Off Ver
    2016
    Posts
    281

    Re: One sheet made my file go from 3000 kb to 35,000 kb

    i clicked continue without undo and nothing happened?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: One sheet made my file go from 3000 kb to 35,000 kb

    Try selecting smaller chunks or rows (or columns) at a time, and delete those
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: One sheet made my file go from 3000 kb to 35,000 kb

    You probably need to wait awhile.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: One sheet made my file go from 3000 kb to 35,000 kb

    Also, maybe try deleting cell contents 1st, then deleting rows

  9. #9
    Registered User
    Join Date
    09-12-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2013
    Posts
    38

    Re: One sheet made my file go from 3000 kb to 35,000 kb

    create a new sheet
    copy the data from the problem sheet into the new sheet
    delete the problem sheet
    save file

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: One sheet made my file go from 3000 kb to 35,000 kb

    Quote Originally Posted by FDibbins View Post
    Also, maybe try deleting cell contents 1st, then deleting rows
    You need to CLEAR the cells first, Ford, not just clear contents. Otherwise formatting that may be extending the used range is copied from the last row/column when the rows/columns are deleted.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: One sheet made my file go from 3000 kb to 35,000 kb

    Good point, thanks for the reminder

  12. #12
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: One sheet made my file go from 3000 kb to 35,000 kb

    At one stage i wrote this to resolve this issue - ie delete a few rows at a time (then delete extra columns.
    so you could use this...

    others,
    Since I might have your attention -
    could I do this much more efficiently by instead coding it to do what shg suggested - ie clear the cells first then delete them all in one go? would that be faster and safe from crashing?
    Or clear them and still delete in batches?
    Sometimes it takes longer than I would like.

    But don't let me hijack the thread...

    Please Login or Register  to view this content.
    Last edited by scottiex; 07-11-2018 at 12:57 AM.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  13. #13
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: One sheet made my file go from 3000 kb to 35,000 kb

    Quote Originally Posted by rondeondon View Post
    create a new sheet
    copy the data from the problem sheet into the new sheet
    delete the problem sheet
    save file
    I agree with this. Its the alternative option to what has also been suggested which is to clear out the excess cells using Clear All or Delete. In especially bad sheets the amount of time you can spend whittling the sheet down to a manageable Used Range could be beyond the point of reason.

    Copying just the data (as per the instructions given) you need is a faster approach but comes with some warnings. It could duplicate things like named ranges or styles (which can cause similar issues to what you are correcting) unless using paste special values, formulas, etc.

    @scottiex, I would highly recommend not using VBA or any other program or scripting to attempt this cleanup. Your method for example, just like most logical attempts to solve this issue, rely on Excel knowing the difference between the content you have and the content you want. If it could do this, then we wouldnt have the problem in the first place, right?

    Your code may work in examples in which the excess cells do not have any actual value within the cell, but it doesnt account for things like non-print characters, dependencies (other formulas, named ranges, tables, pivots, etc. reference the cell), etc.

    This is dangerous as you are just as likely, if not more so, to delete actual content vs the excess.

    There is as far as I know, no programmatic way to differentiate between valid content and excess content (accurately). You may be able to address very specific cases that are confined to very specific conditions, but there just isnt a universal way to handle all the causes/types of excess content that can cause this problem. If it was possible MS would just build it in to Excel (like they did with Inquire | Clean Excess Cell Formatting)
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  14. #14
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: One sheet made my file go from 3000 kb to 35,000 kb

    thanks for that ZeroCool,
    definitely an important consideration.

+ 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. Record to who opened file and changes made on the file
    By cemregunay in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-16-2018, 05:15 AM
  2. Replies: 0
    Last Post: 01-24-2018, 01:30 PM
  3. To fetch data from sheet 2 based on the selections made on sheet 1
    By maryflower in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2017, 03:22 PM
  4. [SOLVED] bug on the macro coded sheet, a protected sheet, every time i made an action i wanted
    By dondonordas in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-22-2014, 06:46 AM
  5. Replies: 1
    Last Post: 02-22-2014, 01:28 AM
  6. get data from entry made in invoice sheet and save it to seperate sheet
    By snehaljp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-26-2013, 04:55 PM
  7. Move Names and addresses from over 3000 sheets to one sheet so I can delete duplicates
    By JERRY GENNINGS in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-09-2012, 03:12 AM

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