calculation status in msgbox

sadath

Active Member
Joined
Oct 10, 2004
Messages
262
Office Version
  1. 365
Platform
  1. Windows
Is there any way to show the user the calculation status in a message box while opeining a perticular wkb.

like "Calculation is Manual"
or
"Calulation is automatic except table"

thanks
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
well at the basic level:

msgbox application.calculation


will give you a rather cryptic indication - you just need to build an if statement to give these values english text names
 
Upvote 0
Hi there,

Enter the following code into the 'ThisWorkbook' section of code for your workbook

Code:
Private Sub Workbook_Open()
If Application.Calculation = xlCalculationAutomatic Then
    msg = MsgBox("Calculation is Automatic")
ElseIf Application.Calculation = xlCalculationManual Then
    msg = MsgBox("Calculation is Manual")
ElseIf Application.Calculation = xlCalculationSemiautomatic Then
    msg = MsgBox("Calculation is Automatic except Tables")
End If
End Sub

Hope this helps

Richard
 
Upvote 0

Forum statistics

Threads
1,215,065
Messages
6,122,945
Members
449,095
Latest member
nmaske

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