Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xlCalculateManual causes error 1

Status
Not open for further replies.

glenntb

Programmer
Aug 28, 2001
54
US
Greetings! I have a large spreadsheet with many formulas. During macro processing, I would like to turn the calculation to manual instead of automatic. From the help files, I found:

Application.Calculation = xlCalculateManual
Application.CalculateBeforeSave = True


but when I run it, it throws an error:
Method 'Calcluation' of object '_Application' failed

When I added Msgbox xlCalculateManual to the code, it shows that xlCalculateManual is empty.

Any idea what I'm missing? Thanks in advance!

 
Glenn,

My copy of Excel shows the constant to be xlCalculationManual, not xlCalculateManual.


HTH
Mike
 
Works like a charm! It must be a typo in the help files.

Thanks Mike!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top