+ Reply to Thread
Results 1 to 4 of 4

Range Calculation VBA

Hybrid View

  1. #1
    Registered User
    Join Date
    09-10-2007
    Posts
    40

    Range Calculation VBA

    Hello,

    I am trying to work out Range Calculation in VBA.

    I need to be able to only calculate certain cells within a workbook, and have the rest stay on manul calculation.

    I believe this is possible with Range Calculation in VBA but I do not understand how to put the code together

    Sheet("").Calculate

    Any help would be greatly appreciated.

    Regrds,

    JC.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You got it.
    Sheet1.Calculate ' worksheet code name
    Worksheets("someSheet").Calculate ' sheet name
    Range("someRange").Calculate ' named worksheet range
    SomeOtherRange.Calculate ' range variable

  3. #3
    Registered User
    Join Date
    09-10-2007
    Posts
    40
    Thanks heaps ! Do I put my sheet name where it says "Sheet1".Calculate

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    The code name of the sheet -- what you see in the VBE Project Explorer window. In the second example you would use the sheet name that appears on the worksheet tab.

+ 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