Results 1 to 8 of 8

One Sheet Manual Calculation

Threaded View

mmf One Sheet Manual Calculation 12-19-2008, 11:26 AM
shg Not going to happen. You... 12-19-2008, 11:49 AM
mmf Hi SHG, I was thinking to do... 12-19-2008, 11:55 AM
oOarthurOo Re: One Sheet Manual... 04-19-2010, 01:28 PM
shg Re: One Sheet Manual... 04-19-2010, 01:55 PM
oOarthurOo Re: One Sheet Manual... 04-19-2010, 02:11 PM
shg Re: One Sheet Manual... 04-19-2010, 02:16 PM
romperstomper Re: One Sheet Manual... 04-19-2010, 03:53 PM
  1. #3
    Forum Contributor
    Join Date
    06-15-2007
    Location
    Scotland
    Posts
    142
    Hi SHG, I was thinking to do something like you proposed. but I do not know how to call the secod sub when any change happen in the workbook.
    any hint in that sense will be great

    'First part when the workbook is opened
    Private Sub Workbook_Open()
        'To disable Excel Automatic Calculation then all sheet are frozen
        With Application
            .Calculation = xlManual
            .CalculateBeforeSave = False
        End With
        'making sure that check box is false
        Sheet1.CheckBox1.Value = False
        Sheet1.Range("M2") = "FALSE"
        
        'to calculate only the sheets with the true condition when the workbook is open
        'sheet3 and 4 to update results
        Sheet3.Calculate
        Sheet4.calcualate
        'sheet 1 to update results
        Sheet1.Calculate
    End Sub
    
    
    'second part
    'This is the bit that I do not know how to do it
    'When any change happen in the workbook any of the sheets even shhet 2
        'calculate only the sheets with the true condition stated in sheet1(eg. sheet3 and 4 first to update results)
        'Sheet3.Calculate
        'Sheet4.calcualate
        
        'check if sheet2 has to be calculated (if the user tick the check box
        'If Sheet1.Range("M2") = "TRUE" Then
        '    Sheet2.Calculate
        'Else
        'End If
        
        'sheet 1 to update all results from sheet2,3,4
        'Sheet1.Calculate
    
    'End
    Last edited by mmf; 12-19-2008 at 11:58 AM.

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