Auto calculation off on single sheet even after saving workbook?

babaso_tawase

Board Regular
Joined
Feb 5, 2017
Messages
73
Office Version
  1. 2007
Platform
  1. Windows
I have workbook with 3 sheets named sheet 1= Sample entry, sheet 2=monthly report, sheet 3 =names. Sheet 1 have raw data about 100000 row, sheet 2 contains lots of formulas. I don't want calculate result every time while saving. I want result once in monthly, I can do calculation by pressing F9 key.
I use below vba code in module.

Option Explicit
Private Sub Worksheet_Activate()
Worksheets("Monthly Report").EnableCalculation = False
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
Application.CalculateBeforeSave = False
End Sub

It gives desired results means stops calculation.
But it applies for all sheets. I just want autocalualation off for sheet 2 upon saving file and opening file also.
If I opened other normal workbook and after that I opened this workbook VBA code not works.
If I opened this workbook first and after that other workbook. Autocalulation gets offs for all other workbooks.
Is any solution for this?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
The only true way to prevent calculations is to value the cells. What I do is save a copy of all the formulas in a hidden row above the table. when I want to calculate, I copy the formulas down, manually calculate, then value them again. A macro is perfect for this.
 
Upvote 0
Ok I understand...Is there any vba code for autoculation off for particular set of cells like a1to d11.
 
Upvote 0
I know of no way to to turn off a range from calculating.
There's only a way to turn off a sheet calculation. It will recalculate when you load the workbook, but it won't calculate during normal operations.

1709922587526.png
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top