+ Reply to Thread
Results 1 to 22 of 22

Excel File still large after deleting everything

  1. #1
    Registered User
    Join Date
    10-09-2010
    Location
    Seku
    MS-Off Ver
    Excel 2003
    Posts
    27

    Excel File still large after deleting everything

    I've been working in an Excel file and my major restriction is size. In my effort to pinpoint whatever increases the size of the file,
    I ended up deleting all worksheets, all userforms, all modules & class modules until nothing is left standing. The empty file though
    doesn't seem so empty...In my search for a solution, I've stumbled across some VBA codes to -DeleteMissingItems-, to DeleteOldItems,
    to delete shapes, objects etc etc. So far, nothing has worked and the file is still 1.2MB large when totally empty.

    Does anyone has the knowledge to help getting rid of that useless 1,2MB?

    PS. There is a piece of VBA code in the original file that copy-paste ranges to another instance of Excel.
    I make a note of this, because I've read something about Excel keeping data relevant to external connections.

    Thank you in advance.-

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Excel File still large after deleting everything

    Create a new workbook.
    Copy the existing sheets into the workbook sheet by sheet
    Save the new workbook.
    See if thats any smaller, it usually is.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Excel File still large after deleting everything

    deleting evertthing is not possble at least one sheet must have been left.

    try look for objects that are hidden by vba or
    recently I was given a file that was supposedly empty but it had 15000 small objects (pictures) with where transparent and no borderline so were not visable
    this happens a lot when data is copied from websites trhu copy and paste.

    fastest way to find if there are objects is to press F5 > click special button > select objects

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,010

    Re: Excel File still large after deleting everything

    .
    Two other things to try ...

    If you save the workbook as .xlsb (binary) it substantially reduces the size.

    Secondly, if you run this macro on the workbook (paste it into a routine module and run), it will check for unseen, residual "data" sitting in cells below the last row/column of what is visible ...
    and then it will delete that "data".

    Please Login or Register  to view this content.
    The other method of performing the same task as the macro is to go sheet by sheet ... find the last row of data / highlight that row and all the rows below it until you reach the bottom of the sheet, then
    right click the highlighted region and select DELETE or CLEAR CONTENTS. This method is time consuming and labor intensive.

  5. #5
    Registered User
    Join Date
    10-09-2010
    Location
    Seku
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Excel File still large after deleting everything

    Special-K -
    I've tried that but I came across several reference problems...let alone the fact it's time consuming,
    it isn't a permanent solution, since whatever caused that 1.2 MB to appear, will do it again.

    Roel Jongman
    I've created a new totally empty sheet and deleted everything else.
    As far as objects, I've looked for them using the same way you suggested... There are no objects.

    Logit
    I'm not sure I can save the file as .xlsb (binary) since I'm using Excel 2003 or if such file extension might cause any data loss.
    As far as the code to delete everything, i've tried it but it didn't find anything to delete. In Excel 2003 there are no hidden sheets anyway.

    Thank you all for the replies, I've been struggling with this project for a few years now but this problem extends beyond my grasp of coding.
    Any help is appreciated.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel File still large after deleting everything

    Maybe try zip this file then unzip

  7. #7
    Registered User
    Join Date
    10-09-2010
    Location
    Seku
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Excel File still large after deleting everything

    Sandy666 , already tried that - No luck either.

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel File still large after deleting everything

    if there is no sensitive data, zip it and post here

  9. #9
    Registered User
    Join Date
    10-09-2010
    Location
    Seku
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Excel File still large after deleting everything

    I'll upload the not so empty file. Hopefully it does not have any hidden sensitive info.

    PS. I've tried what Logit suggested and saved the "empty" file as a binary file using Excel 2010.
    It did turn the file to 14k as it should of been in the first place but that would likely cause trouble
    when I try to revert to Excel 2003.
    Attached Files Attached Files

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Excel File still large after deleting everything

    It's file bloat. I followed the protocol here from cell A10 and it reduced the file size to 25K.

    https://www.techrepublic.com/blog/mi...orkbook-bloat/
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Excel File still large after deleting everything

    maybe this one will work for you:
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    10-09-2010
    Location
    Seku
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Excel File still large after deleting everything

    Glenn Kennedy
    What version of Excel did you use and what do you mean from cell A10?
    ...Because when I press ctrl + End in Excel 2003 it takes me to A1.

    I should note that the empty file is of no actual use, just a medium to find a way
    to get rid of that bloat and then apply it to the Main Excel file.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Excel File still large after deleting everything

    Sekect, for example A10. Ctrl shift down arrow, delete rows. Save. Clise. Check file size. Re-read the instructions for remivsl of file bloat.

  14. #14
    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: Excel File still large after deleting everything

    Simply deleting the two custom cell styles and then saving the workbook reduced the file size for me with 2010.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  15. #15
    Registered User
    Join Date
    10-09-2010
    Location
    Seku
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Excel File still large after deleting everything

    I've read the instructions very carefully. I've tried it in Excel 2010 and it works just fine.

    The problem is that this method -does not work on Excel 2003- and even if it did, it would give me no idea how to
    remove bloat from my main file, since I can't follow the same procedure without loss of data.

    Is there a way to detect that useless data via VBA and rid of it?

  16. #16
    Registered User
    Join Date
    10-09-2010
    Location
    Seku
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Excel File still large after deleting everything

    What custom cell styles?!

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel File still large after deleting everything

    find, download and install Ex'97
    open your file (agree with everything)
    save (again agree)

    that's all

  18. #18
    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: Excel File still large after deleting everything

    You have two custom styles called "Normal 2" and "Βασικό_FEATS" in that workbook. Use Format - Style, then select each of those and press Delete (if my memory doesn't fail me).

    However, I have just discovered that simply saving the workbook in 2010 without changing anything reduces the file size, so my suggestion may not achieve much in 2003.

  19. #19
    Registered User
    Join Date
    10-09-2010
    Location
    Seku
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Excel File still large after deleting everything

    Thanks for the suggestion xlnitwit, for a moment I thought this would be it...Yet 2003 doesn't like the solution.
    I also used the following code to make sure the styles get deleted.

    Please Login or Register  to view this content.
    I will try and do what you suggested in compatibility mode in Excel 2010, maybe I'm lucky.

    Sandy666, I'm sorry I have no idea what this Ex'97 is and any searches I've made returned nothing.

  20. #20
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel File still large after deleting everything

    Excel 97 .

  21. #21
    Registered User
    Join Date
    10-09-2010
    Location
    Seku
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Excel File still large after deleting everything

    Sandy666, I've tried using Excel 97 in the past and unfortunately messes up some of my formulas.

    xlnitwit
    I've tested it in Excel 2010 and it works exactly as you said. There are 2 extra styles and if deleted the size goes back to normal.
    It's very disturbing that in 2003, I can see many more of those styles(>10) and if deleted, there is no change in size at all.

    At least the false size is not some secret unreachable data that will magically re-appear(Hopefully), if finally manage to get rid of it.
    That's a start, I guess...If anyone can do it in 2003, please share.

    Thanks again.

  22. #22
    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: Excel File still large after deleting everything

    I think I have a copy of 2003 somewhere at home, so I will try to test tomorrow if I have some free time.

+ 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. [SOLVED] Large TXT file into Excel
    By Aquafuzz in forum Excel General
    Replies: 4
    Last Post: 02-12-2018, 01:47 PM
  2. [SOLVED] Large file size on a simple excel file
    By FieldHaven in forum Excel General
    Replies: 2
    Last Post: 11-16-2014, 01:59 AM
  3. [SOLVED] Deleting Records from a Large File?
    By metaxzen in forum Excel General
    Replies: 3
    Last Post: 09-09-2013, 11:58 AM
  4. Excel file referencing a large central macro file?
    By alanzero in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-25-2011, 08:29 PM
  5. Excel File is really large
    By krypto in forum Excel General
    Replies: 15
    Last Post: 06-25-2010, 02:54 PM
  6. Large Excel File
    By ions in forum Excel General
    Replies: 1
    Last Post: 03-26-2008, 11:24 PM
  7. File too large for Excel?
    By Bart Snel in forum Excel General
    Replies: 2
    Last Post: 05-19-2005, 09:06 AM

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