Results 1 to 14 of 14

Thread: Large Excel Files

  1. #1

    Thread Starter
    Frenzied Member zynder's Avatar
    Join Date
    Nov 2006
    Location
    localhost
    Posts
    1,434

    Large Excel Files

    Hi guys!

    I have a shared workbook up to 10-20 users. This is the first time we encountered this problem. Basically the excel file size range from 2-4 MB. But yesterday it bloated up to 150 MB - 350 MB.

    OMG!!!

    How can I shrink the excel file back to normal. I've tried un sharing the workbook and it didn't help.

    Thanks for any input!

  2. #2

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Large Excel Files

    I had that happen to me once, and I never did figure out why.

    I made a copy of the spreadsheet, then went into the originial, deleted EVERYTHING out of it and saved it.

    The file size didn't change a single KB

    I wound up opening a blank worksheet, and copying what I had over to it. That was the only way I got the size back down to normal.

    I even posted this very same question here on the Forums. Nothing anyone suggested helped or fixed it.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Large Excel Files

    Here is the thread that I created on this issue back in 2005. Read some of the responses.

  5. #5

    Thread Starter
    Frenzied Member zynder's Avatar
    Join Date
    Nov 2006
    Location
    localhost
    Posts
    1,434

    Re: Large Excel Files

    Thanks for the quick replies.

    Excel is weird. Anyway, just for additional info, im using office 2003 running on XP pro under 2003 domain.

    The excel file is shared. Anyway, I can only get the size back if i copy and paste it to another instance of excel and then delete the large excel file but what the heck is making it large.

  6. #6
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Large Excel Files

    I think the "weird" behavior can somehow be explained (I guess)...

    If someone mistakenly (by pressing ctrl+a and then ctrl+c) copied 10K rows from one spreadsheet to another and then by realizing that that was a mistake can do either:

    - hide "bad" spreadsheet so nobody would "see" it
    - or re-paste only necessary rows by overwiting all of those 10Ks and I think Excel may remember all deleted rows since it's [basically] single file based db (just like ms access but without the db cleanup utility).

    I'm guessing here of course as I haven't seen any documentation (if such even exists).

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Large Excel Files

    Quote Originally Posted by zynder
    The excel file is shared. Anyway, I can only get the size back if i copy and paste it to another instance of excel and then delete the large excel file but what the heck is making it large.
    Yep, as I said, that is what I had to do, and, two years later, I still don't know what happened to the spreadsheet file.

    I was also using Excel 2003 BTW.

  8. #8

    Thread Starter
    Frenzied Member zynder's Avatar
    Join Date
    Nov 2006
    Location
    localhost
    Posts
    1,434

    Re: Large Excel Files

    I read your thread and still their suggestions dont seem to work. I even downloaded the add-in and still don't have any luck. The empty excel file is 13MB OMG...

  9. #9

    Thread Starter
    Frenzied Member zynder's Avatar
    Join Date
    Nov 2006
    Location
    localhost
    Posts
    1,434

    Re: Large Excel Files

    Quote Originally Posted by RhinoBull
    I think the "weird" behavior can somehow be explained (I guess)...

    If someone mistakenly (by pressing ctrl+a and then ctrl+c) copied 10K rows from one spreadsheet to another and then by realizing that that was a mistake can do either:

    - hide "bad" spreadsheet so nobody would "see" it
    - or re-paste only necessary rows by overwiting all of those 10Ks and I think Excel may remember all deleted rows since it's [basically] single file based db (just like ms access but without the db cleanup utility).

    I'm guessing here of course as I haven't seen any documentation (if such even exists).
    It could be but I deleted the excess rows and column but the size is still big. The file is basically empty. Any ideas?

  10. #10
    Fanatic Member VBAhack's Avatar
    Join Date
    Dec 2004
    Location
    Sector 000
    Posts
    617

    Re: Large Excel Files

    I just had this happen. I was working on an Excel file with 11 sheets and the size was right around 1MB. I saved it and it was suddenly 10MB!

    I don't recall doing anything just prior to the save that would increase the size. As an experiment, I successively deleted 1 sheet at a time and saved the file. By the time I got down to the last sheet, it was still 2.6MB!

    I'm about ready to give up and reluctantly copy sheet by sheet over to a new file. This is very annoying!

  11. #11
    Fanatic Member VBAhack's Avatar
    Join Date
    Dec 2004
    Location
    Sector 000
    Posts
    617

    Re: Large Excel Files

    I have an Excel file that is 480KB in size. All I do is open it and save, then the size is 3.5MB! I did nothing else. There aren't any event macros, nothing. All I did was open, then save. Increases 7x just by saving. What could cause this? It is insane!
    Last edited by VBAhack; Dec 20th, 2007 at 09:56 PM.

  12. #12
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Large Excel Files

    I had a similar problem where I had a 80KB workbook grow to 120MB because I cleared all borders on EVERY cell. The following fixed it (I call this before closing the workbook).

    Code:
    Private Sub bfrCLS()
        Dim  sh As Worksheet, cSht As Worksheet
        Dim lRW As Long, lCL As Long
        Dim rng As Range
        Set cSht = ActiveSheet
        Application.ScreenUpdating = False
        For Each sh In Sheets
            sh.Select
            Set rng = ActiveSheet.UsedRange
            lRW = rng.Rows.Count + (rng.Row - 1)
            lCL = rng.Columns.Count + (rng.Column - 1)
        Next
        cSht.Select
        Application.ScreenUpdating = True
    End Sub

  13. #13
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Large Excel Files

    It may be that a user copy/pasted a picture or ole object to the sheet and not deleted or had an error deleting so its left in the book.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  14. #14
    Hyperactive Member
    Join Date
    Jun 2006
    Location
    Best Place on Earth
    Posts
    363

    Re: Large Excel Files

    Have you tried using a hex viewer to see the data that is there?

    I rememeber using some from the days when DOS was king, but cannot recall
    seeing any for some years now..
    Signature Under Construction

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width