+ Reply to Thread
Results 1 to 5 of 5

Custom function slowing workbook speed

  1. #1
    Registered User
    Join Date
    11-08-2005
    Posts
    8

    Custom function slowing workbook speed

    I have at work an excel file I use for billing purposes. It contains at least 100 seperate sheets, each named by the job number (we are a pump service company). I have posted things before about this problem and I hope this will not get me in trouble but I am still having the same problem...I am trying again and this time giving as much information as I can so hopefully this time is easier to fully understand my issue. I am enclosing an attatchment. This is an example of just one job out of 100 in the same workbook. On top of things I am new at forums and limited in my excel programming abilities. Please don't kick me off the forum for not asking my question right the first time.

    Anyway I have code written as of now into a Module 2 as follows:
    Please Login or Register  to view this content.
    Module 1 contains a macro I have written (with help) to hide rows I don't need to see once I am ready to print:
    Please Login or Register  to view this content.
    My problems are:
    1) I work in this workbook every day doing data entry...when I am just entering data I do not need it to calculate every time I enter a number as it does now. It extremely slows down entering data so I end up going into Module 2 and temporarily deleting its code so I can enter data faster.

    2) I really don't need Module 2 to work for me until the job is done and I have entered all the guys time for all the days they worked on that job. I thought maybe I could convert it into a macro so I could tell it to run when I was ready - but I am a novice at this so that probably isn't the answer.

    If someone could take the time to help me it would be SO APPRECIATED!!!
    Attached Files Attached Files
    Last edited by VBA Noob; 09-04-2008 at 04:39 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Under Tools>Options, you can set your calculations to manual and then it won't update your calculations until you either hit F9 or switch it back to automatic. Would that work for you?

    ChemistB

  3. #3
    Registered User
    Join Date
    08-06-2008
    Location
    Colorado
    Posts
    4
    You can turn off automatic Excel re-Calculation.
    I.e. Under tools / options there is a check box that would turn off automatic recalculation.

    If you do google Search on "How to turn off excel Calculation" there are a few articles with detailed steps of how to do this.

    Hope this helps

  4. #4
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: Custom function slowing workbook speed

    A macro is not called (run) by itself but it can be called on events. When you define
    Please Login or Register  to view this content.
    This code is called whenever a calculation on the sheet is done. You have plenty.

    You can control it by yourself is you put a command button on your sheet of define a add-in or even make some custom bar buttons. Use the personal.xls (excel 2003) for this.

    DO NOT MANUALLY CALCULATE! One of those donts

    Hope this helped.

    Gr,
    Ricardo

  5. #5
    Registered User
    Join Date
    09-04-2008
    Location
    Bentonville, AR
    Posts
    10
    Add this to the begining and end of any subroutine that you want to run fast.

    Please Login or Register  to view this content.
    Last edited by flee01; 09-04-2008 at 05:31 PM. Reason: Had the order wrong.

+ 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. Custom toolbar inserts in every workbook on server
    By Duddles in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2008, 11:40 PM
  2. Create custom function to exceed 7 nested If functions in Excel 2003/XP/2000/97
    By seanyeap in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2008, 08:54 AM
  3. Link together different cells in specific order?
    By Sandman4432 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-03-2008, 05:01 AM
  4. worksheet.countif function from outside workbook
    By snakeye in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2006, 10:45 AM
  5. Excel maro macro to look up a closed excel function workbook.
    By hittingtime in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2006, 10:00 PM

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