Solved

Compact Excel file?

Posted on 2011-03-01
8
593 Views
Last Modified: 2012-05-11
I've got an Excel file which contains a couple of macros (several hundred lines of code) which is 6Meg in size.

This is a template that I use to export data from a production database into on a monthly basis, but there are currently about 10 worksheets, most of which have less than 20 cells with data or formatting.  The two main worksheets will contain about 300 rows by 30 columns of data each month, but they are currently empty.

I cannot figure out why this spreadsheet is so large, or how to shrink (compact) it down to a reasonable size.
0
Comment
Question by:Dale Fye (Access MVP)
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 23

Expert Comment

by:Michael74
ID: 35014384
0
 
LVL 10

Expert Comment

by:Makrini
ID: 35014404
Are you using querytables?  It's possible that you have inadvertantly added a lot of pivot tables on top of each other.

  Also I find that overuse of named ranges (generally linked to other documents) makes the sizes far far larger.   We really need to see the workbook to tell
0
 
LVL 24

Expert Comment

by:jimyX
ID: 35014512
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 47

Author Comment

by:Dale Fye (Access MVP)
ID: 35018394
Makrini,

No query tables, I'm using Access to open Excel and dump the data into the workbook.  However, many of the extra worksheets mentioned above are to create named ranges which are used for data validation in about 15 of the columns in the main two worksheets.  I deleted all of the named ranges but that did not help much.

I'll take a look at some of the other options presented above.  I've not tried copying the worksheets and code into a new workbook, but will give that a try tonight.
0
 
LVL 47

Author Comment

by:Dale Fye (Access MVP)
ID: 35316535
I apologize for abandoning this, should have closed it out, but got sidelined onto another project (or aspect of this project).

I tried the "solutions" recommended by Michael74 and JimyX, and nothing has worked.  I believe that part of the problem may be all the named ranges on the spreadsheet, so I need to modify some of the code examples referenced above after deleting the named ranges.

Please leave this open and I'll try to get to it this week.
0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 0 total points
ID: 35376163
None of the above solutions resolved the problem, even after removing the named ranges.

I have abandoned this effort because I was able to convince my client to move the entire spreadsheet functionality into the database application; which is a much better long term solution.

It will just take a while to get their users comfortable with working in a database rather than using spreadsheets like a database.

0
 
LVL 47

Author Closing Comment

by:Dale Fye (Access MVP)
ID: 35410260
see final note in thread
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question