+ Reply to Thread
Results 1 to 6 of 6

Need to find a way to shrink a workbook

  1. #1
    Registered User
    Join Date
    01-05-2014
    Location
    Swansea
    MS-Off Ver
    Mac Excel 11
    Posts
    9

    Need to find a way to shrink a workbook

    Hi I have a workbook that is over 100 tabs currently coming in a 23MB. Im afraid that when people start to populate the workbook even more, it will become even bigger. What can I do to shrink the workbook size without obviously having to delete tabs?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: Need to find a way to shrink a workbook

    On each tab you can do CTRL-End - this should take you to the last used cell. If it is much larger than you expect, then you can delete the empty rows and columns and then save the workbook, close and re-open it. Then once your users start adding data, at least you do not have inflated used-ranges.

    You can also check that there are no unwanted shapes in the workbook, and also check there are no unnecessary named ranges. Also, conditional formatting can hog memory, so check you do not have any unwanted CFs.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-05-2014
    Location
    Swansea
    MS-Off Ver
    Mac Excel 11
    Posts
    9

    Re: Need to find a way to shrink a workbook

    What about using VBA? are there any ways

  4. #4
    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
    44,137

    Re: Need to find a way to shrink a workbook

    No need - Pete's suggestion is spot on. Here's a quick wqay to achieve the desired end:

    First, move to the last cell that contains data and select a cell in the next row.

    Press Ctrl + Shift + Down arrow key. Right click in the selected area and click delete. From the window opened, select delete entire row.



    Next:

    Move to the last cell that contains data and select a cell in the next column. Press Ctrl + Shift + Right arrow key. Right click in the selected area and click delete. From the window opened, select delete entire column.



    Most probably you will see no change after this. Not to worry. Press Ctrl+S. Close the sheet. When you open the sheet next time, the scroll bar is adjusted

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Need to find a way to shrink a workbook

    Hi Abz_Tahar

    What about using VBA? are there any ways
    Yes, there are ways, perhaps, maybe, could be.

    Is there one Column that's filled with Data all the way down to the Last Row with Data?
    Is there one Row (perhaps a Header Row) that's filled with Headers all the way to the Right?
    Do you have Formatting beyond the End of Rows, Columns that are are not occupied with Data (such as Borders)?
    Do all the Worksheets have the Same Structure?

    It would help us to help you if you could create and upload a Sample of what your actual 100's of Worksheets look like. VBA Code could be written to do as Pete suggested.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  6. #6
    Forum Contributor
    Join Date
    07-26-2012
    Location
    USA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    351

    Re: Need to find a way to shrink a workbook

    If you have formulas that you've dragged down several hundred rows, you could programatically add those formulas and drag down on the Workbook_Open event. I've found this to reduce file size by a decent amount. Of course it depends how much you're doing this in your workbook. Also, if you have images in your workbook, remove them. There are other things you can do, but without knowing much about your workbook, I can't really offer much else.

+ 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. Shrink to Fit
    By jzapatka in forum Excel General
    Replies: 3
    Last Post: 12-06-2018, 01:36 PM
  2. Anyone can shrink this code?
    By fucell in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-11-2011, 07:40 AM
  3. Shrink Properties
    By Stuarty in forum Excel General
    Replies: 7
    Last Post: 01-10-2006, 05:38 AM
  4. [SOLVED] can we shrink images to fit?
    By J_J in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-30-2005, 12:05 PM
  5. [SOLVED] Shrink to Fit-using ALT-Enter
    By jzapatka in forum Excel General
    Replies: 0
    Last Post: 03-14-2005, 06:06 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