Consulting

Results 1 to 5 of 5

Thread: Solved: Inefficiencies of Multiple Sheets

  1. #1

    Solved: Inefficiencies of Multiple Sheets

    Because Excel has been crashing on me lately, one of the things I started wondering about is the use of multiple sheets in a workbook. I typically have 8 to 10 worksheets, some large, some not so large.

    So my exploratory question is:
    Assumming I could put all the stuff I now have on 10 wrorksheets onto a single sheet, would that be more efficient AND less prone to crash errors?

    Is there an optimum number of sheets to use, like maybe 5?

    Does the video card have a harder time servicing 10 sheets than 1 sheet?

    Curious Sid

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Hi Sid,
    I'm running some 30-40MB workbooks with 30-40 sheets on Excel 2000 without crashing problems. Admittedly they are mostly record with little interlinking formulae.
    While you could compile into one sheet, I suspect problems keeping things "straight" if you need to change the layout at all.
    Regards
    Malcolm
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I cannot see how a single sheet will improve any stability problems that you have, but it will make things a lot more obscure and harder to maintain.

    The problem must be elsewhere.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    Thanks for the opinions, guys!

    Just trying to fill in some more blank spots in my understanding of how things work. I didn't actually think the multiple pages were causing my somewhat random Excel crashes, but the thought did occur. Strangely the crashes occur (I think) upon exiting an Excel session AFTER everything has apparently stopped. Short delay, then crash with catestrophic repair. It even trys to repair some workbooks I haven't even been using. (Very weird) Thank goodness for multiple workbook backups.

  5. #5
    VBAX Regular
    Joined
    Apr 2008
    Posts
    65
    Location
    Have you tried running VBA Code Cleaner? Simply running it against my VBA code has eliminated mystery catastrophic failures several times. It's a free download (www.appspro.com).

    I've only been able to definitely isolate two causes of catastrophic failures and both were related to UserForms. In one case I re-named an existing UserForm and started getting crashes right away so I was able to trace the problem quickly. Re-naming it back solved the problem and I later found that it has happened to other people.

    The other time was when I set up a combo box with 2 columns. I only wanted to show the first column in the UserForm but I wanted the second column to be the selection. The documentation wasn't clear whether I could do that but I tried it and it worked fine for months. I was having random crashes during that time but didn't relate it to that UserForm until I just happened to make a minor change in the form and exited and it crashed. I kept narrowing it down until I proved to myself that that particular combo box was causing it to crash IF it was the last thing open in VBA when I exited.

    Bottom line: VBA has problems that it doesn't know about until it actually runs and crashes. My bet is there's something in your code which may be quite legitimate and yet VBA is having a problem with it. But start with VBA Cleaner.

Posting Permissions

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