calculation status in msgbox

sadath

Board Regular
Joined
Oct 10, 2004
Messages
246
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
 

Some videos you may like

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.

macleanb

Well-known Member
Joined
Dec 10, 2004
Messages
715
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
 

R_Stephens

Board Regular
Joined
Dec 23, 2004
Messages
143
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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,517
Messages
5,596,620
Members
414,081
Latest member
Subaru_Steve

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
Top