Results 1 to 1 of 1

VBA code to calculate only changed range of cells

Threaded View

  1. #1
    Registered User
    Join Date
    02-10-2011
    Location
    California, USA
    MS-Off Ver
    Excel 2010
    Posts
    92

    VBA code to calculate only changed range of cells

    Hi all,

    I am using the following code:
    Application.Calculation = xlCalculationManual
        For Each Cll In Range("C24:J39,C41:R56,I7:I22,L7:L16")
            For Each TCll In Target
            If Cll.Address = TCll.Address Then
                Sheet4.Calculate
                Exit Sub
            End If
            Next TCll
        Next Cll
    to calculate (update) a range of cells on sheet4 if changes occur. However this causes multiple calculations on the 16 sheets that reference these cells. Would it be possible to turn off calculation if there are NO changes in the cells?

    Thanks for any help.
    Last edited by JBeaucaire; 02-20-2013 at 03:47 AM. Reason: Added code tags, as per forum rules. Don't forget!

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