Consulting

Results 1 to 5 of 5

Thread: Prevent Size Increase With Formulas

  1. #1
    VBAX Contributor
    Joined
    Apr 2010
    Posts
    182
    Location

    Prevent Size Increase With Formulas

    Hi anyone,

    I'm facing a situation where my workbook suddenly increased in size from 24kb to 1mb.

    I have only four sheets in my workbook where one worksheet contains only formula.

    I've tried the code in
    HTML Code:
    http://www.vbaexpress.com/kb/getarticle.php?kb_id=83
    But it does not work for me. I'm getting the debug message by highlighting the line
    [vba] Do Until .CDo Until .Cells(j, k).Left > Shp.Left + Shp.Widthells(j, k).Left > Shp.Left + Shp.Width[/vba]
    Any help on this would be kindly appreciated.

    Note: I"m using Microsoft Excel 2007

    Thanks in advance.
    Best Regards,
    adamsm

  2. #2
    VBAX Tutor Benzadeus's Avatar
    Joined
    Dec 2008
    Location
    Belo Horizonte, Brazil
    Posts
    271
    Location
    Have you considered copying all the contents of each Worksheet and pasting in another new blank Workbook?
    Do this test:
    1 - Copy and paste all formula and values from one workbook to another, save it and check the size.
    2 - Copy and paste formats. Check the size.
    ---
    Felipe Costa Gualberto
    Microsoft Excel MVP
    http://www.ambienteoffice.com.br

  3. #3
    VBAX Contributor
    Joined
    Apr 2010
    Posts
    182
    Location
    Thanks for the help. But what if the new blank Workbook gets increased in size?

    After some adjustment or addition of another sheet with formulas?

    I'm saying this because this has happened with the current workbook i'm having.

    Any suggestion on this would be kindly appreciated.

    Thanks in advance.
    Best Regards,
    adamsm

  4. #4
    VBAX Tutor Benzadeus's Avatar
    Joined
    Dec 2008
    Location
    Belo Horizonte, Brazil
    Posts
    271
    Location
    To tell the truth, I really don't know why your workbook increased the size that much. It's just I've had this problem in the past and I usually find out what is wrong.
    But what if the new blank Workbook gets increased in size?
    We will try another approach, so try the steps I suggested.
    ---
    Felipe Costa Gualberto
    Microsoft Excel MVP
    http://www.ambienteoffice.com.br

  5. #5
    VBAX Contributor
    Joined
    Apr 2010
    Posts
    182
    Location
    Thanks for the recommendation. I'll look into that and let you know the response.
    Best Regards,
    adamsm

Posting Permissions

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