Closed Thread
Results 1 to 14 of 14

Setting a single worksheet to manual calculation

  1. #1
    Registered User
    Join Date
    02-05-2009
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    Excel 2003
    Posts
    59

    Setting a single worksheet to manual calculation

    Hello,

    Is there a way that I can set a single worksheet in a workbook to always be on manual calculation, but keep all other sheet in the workbook set to automatic?

    I want to be able to open the workbook, any calculations to perform automatically and then i will select the 'manual' sheet and perform these calculations manually. I also need to these settings to always apply each time i open the workbook.

    Thanks!
    Last edited by JONNY981; 04-24-2009 at 05:09 AM.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Setting a single worksheet to manual calculation

    Right click the Excel icon next to the File menu, View Code, and paste:
    Please Login or Register  to view this content.
    Last edited by Kenneth Hobson; 04-22-2009 at 08:18 AM.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Setting a single worksheet to manual calculation

    One of the other guys/gals will have a better answer but no I'm not aware of the ability to do that - you can disable calculation for given sheets on the workbook being opened and then run a separate routine to calculate a given sheet, eg:

    Please Login or Register  to view this content.
    So to calculate Sheet2...

    Please Login or Register  to view this content.
    The above could be assigned say to a keyboard shortcut ... you could add some checks to the routine to ensure the ActiveSheet name is valid for the exercise (prior to disabling the Calculation)

    When doing anything calculation related be sure to check out Charles Williams' site: http://www.decisionmodels.com/calcsecrets.htm

  4. #4
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Setting a single worksheet to manual calculation

    Bad solution
    Last edited by foxguy; 04-21-2009 at 12:42 PM. Reason: bad solution

  5. #5
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Setting a single worksheet to manual calculation

    bad solution
    Last edited by foxguy; 04-21-2009 at 12:42 PM. Reason: bad solution

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Setting a single worksheet to manual calculation

    foxguy, my proposal does not alter Calculation from it's current state at Application level, the sheets in question are simply disabled in a calculation sense and thus never calculated, they could only be calculated by invoking the manual routine (akin to SHIFT+F9 in a traditional sense)....

    (nor will the offending sheets be calculated on workbook open)

  7. #7
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Setting a single worksheet to manual calculation

    DonkeyOte, looks like you're right. I misread your message. EnableCalculation is a new property for me. I read it as Calculation.

    Johnny, ignore my previous post, looks like DonkeyOte's is the better solution.

  8. #8
    Registered User
    Join Date
    02-05-2009
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    Excel 2003
    Posts
    59

    Re: Setting a single worksheet to manual calculation

    Thanks everyone,

    I tried Kenneth Hobson's solution first, which seemed like exactly what I wanted to do, but excel gave me a run time error '424'.

    I then tried DonkeyOte's solution and it seems to work perfectly, thanks!

  9. #9
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Setting a single worksheet to manual calculation

    I fixed my code so it should work for you if your sheet for manual calculation is named Manual.

  10. #10
    Registered User
    Join Date
    02-05-2009
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    Excel 2003
    Posts
    59

    Re: Setting a single worksheet to manual calculation

    I have encountered a problem with your code DonkeyOte, excel is giving me a syntax error for the following (but with my sheet name):

    Please Login or Register  to view this content.
    I have tried changing the name of the sheet etc but no luck, havent a clue why this is happening as it worked fine at first!

  11. #11
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Setting a single worksheet to manual calculation

    I was using CodeName... if you use the tab name

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    02-05-2009
    Location
    Belfast, Northern Ireland
    MS-Off Ver
    Excel 2003
    Posts
    59

    Re: Setting a single worksheet to manual calculation

    Thanks, looking over that now ive realised that was a really stupid question lol!

  13. #13
    Registered User
    Join Date
    02-09-2010
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Setting a single worksheet to manual calculation

    I'm using DonkeyOte's macro as such:

    Private Sub Workbook_Open()
    Sheets("Summary").EnableCalculation = False
    End Sub

    This is working fine, but it doesn't automatically work when I open the file. Any idea why?


    Excel 2007

  14. #14
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Setting a single worksheet to manual calculation

    Macro Daddy, welcome to the board, however, please note:

    Your post does not comply with Rule 2 of our Forum RULES.

    Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

    (also - please use CODE tags when posting VBA)

Closed 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