I have a code that initially sets ScreenUpdating to False, but in the middle of the code it calls another subroutine and for some reason it actually shows me some (not all) actions (ie, when it selects a new sheet I get to see that). I have been following ScreenUpdating Property through Debug.Print Application.ScreenUpdating and it always stays as FALSE.
Here is a simplified version of the code
The subroutine DP_disbursement is located in a different module (is that relevant?). The code is more or less the following:
Anyone ideas? Thanks in advance!
Here is a simplified version of the code
Code:
Option Explicit
Sub Check_InputData()
Application.ScreenUpdating = False
Application.EnableEvents = False
Worksheets("Instructions").Calculate
Worksheets("Lists").Calculate
Call DP_disbursement
Worksheets("DP").Calculate
Application.ScreenUpdating = True
Application.EnableEvents = True
End Sub
The subroutine DP_disbursement is located in a different module (is that relevant?). The code is more or less the following:
Code:
Sub DP_disbursement()
Dim number_disbursements As Integer
Application.EnableEvents = False
Worksheets("DP").Unprotect
Worksheets("DP").Select
ActiveSheet.Calculate
Range("B43:C72").Copy
Range("D43").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Range("D43").Select
ActiveSheet.Calculate
Range("A1").Select
Worksheets("DP").Protect
Application.EnableEvents = True
End Sub
Anyone ideas? Thanks in advance!