+ Reply to Thread
Results 1 to 6 of 6

Calculate Sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    07-07-2008
    Location
    VA
    MS-Off Ver
    2007
    Posts
    38

    Calculate Sheet

    I have a massive program designed in Excel where Calculations take several seconds. Default is to have Calculation set to Manual (hit F9). I also have many macros that must re-calculate multiple times when called. Is there a way to tell the macro to calculate only the sheet so run time is reduced?


    Thanks!

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    The VB instruction "Calculate" will do that.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    08-07-2008
    Location
    CA
    Posts
    1
    Kind of on the same note, is there a way to calc only selected cells, or do I have to calc the whole sheet? I have some large sheets, and when I make changes, I would like to only calc a small amount of columns rather than the entire sheet. Thanks!

  4. #4
    Registered User
    Join Date
    04-24-2008
    Location
    Zurich
    Posts
    45
    You may specify whatever range you want to be calculated

    Worksheet(1).Range("D3:E10").Calculate
    Cells(1,1).Calculate
    Worksheets("Sheet1").UsedRange.Columns("A:B").Calculate

  5. #5
    Registered User
    Join Date
    07-07-2008
    Location
    VA
    MS-Off Ver
    2007
    Posts
    38
    Quote Originally Posted by Kuskush View Post
    You may specify whatever range you want to be calculated

    Worksheet(1).Range("D3:E10").Calculate
    Cells(1,1).Calculate
    Worksheets("Sheet1").UsedRange.Columns("A:B").Calculate
    Thank you, the base instruction Calculate with no reference applies to the entire file. I'll try these out!

  6. #6
    Registered User
    Join Date
    08-24-2008
    Location
    Sisters, Oregon
    Posts
    1
    I have the same need---to cause the formula in one cell to calculate while leaving all other cells with formulas uncalculated. I see the code you have discussed in previous replies for calcualting only a limited range of cells, but I am not experienced with VBA, which I assume that code is. Is there a simple explanation of how to enter the required code into my excel file, or do I need to go get educated in VBA first? thanks, Bruce

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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