Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Application Calculation Error
I keep getting an error when changing the
application.calculation property. The code is as follows: If Application.Calculation = xlCalculationAutomatic Then Application.Calculation = xlCalculationManual End If I get a 1004 runtime error: Method 'Calculation' of Object '_Application' failed. It worked once, then it starts giving me the error. Anyone have a clue what causes this? Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Application Calculation Error
Just a guess, but if you are running this from a commandbutton in Excel 97,
change the takefocusonclick property to false. -- Regards, Tom Ogilvy "Rick B" wrote in message ... I keep getting an error when changing the application.calculation property. The code is as follows: If Application.Calculation = xlCalculationAutomatic Then Application.Calculation = xlCalculationManual End If I get a 1004 runtime error: Method 'Calculation' of Object '_Application' failed. It worked once, then it starts giving me the error. Anyone have a clue what causes this? Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Application Calculation Error
Thanks a Million! That was the problem.
-----Original Message----- Just a guess, but if you are running this from a commandbutton in Excel 97, change the takefocusonclick property to false. -- Regards, Tom Ogilvy "Rick B" wrote in message ... I keep getting an error when changing the application.calculation property. The code is as follows: If Application.Calculation = xlCalculationAutomatic Then Application.Calculation = xlCalculationManual End If I get a 1004 runtime error: Method 'Calculation' of Object '_Application' failed. It worked once, then it starts giving me the error. Anyone have a clue what causes this? Thanks . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Application error | New Users to Excel | |||
Application.Calculation Problems | Excel Worksheet Functions | |||
application error | Excel Discussion (Misc queries) | |||
Application.Calculation=xlCalculationManual causing run time error? | Excel Programming | |||
Application.Calculation exception | Excel Programming |