Error 1004: Calculate Method of Range Class Failed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a very short and simple macro, whose purpose is to calculate the
selected range (thereby avoiding the time it takes to calc the entire sheet).

Sub Recalc_Range()

Selection.Calculate
End Sub

I was running Excel 97, and it worked fine. Now that I have updated to
Excel XP, I get the following error message: "Calculate Method of Range Class
Failed"

I am stumped. I've tried a variety of things, like setting a range variable
equal to the current selection, then running the calculate function on that
range. Same error message. I have also read that you may get this error
message if the Range has no data. My range has data, so that is not it.

Any help is greatly appreciated.

Dan
 
I meant does that fit your situation rather than error.

this provides a little more background:

http://support.microsoft.com/default.aspx?scid=kb;en-us;827990
Circular reference does not calculate during Range.Calculate execution in
Excel 2002

here is a less likely cause:

http://support.microsoft.com/default.aspx?scid=kb;en-us;825011
XL2002: You Receive an Error Message When You Use the Range.Calculate Method
to Calculate Formulas

just a general reference:

http://support.microsoft.com/default.aspx?scid=kb;en-us;825012
How formula calculations are performed in Excel 2002 or Excel 2003
 
Perfect. Thanks.

Jake Marx said:
Hi Dan,

Does this help?

http://support.microsoft.com/default.aspx?scid=kb;en-us;292476

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]

Dan said:
I have a very short and simple macro, whose purpose is to calculate
the selected range (thereby avoiding the time it takes to calc the
entire sheet).

Sub Recalc_Range()

Selection.Calculate
End Sub

I was running Excel 97, and it worked fine. Now that I have updated
to Excel XP, I get the following error message: "Calculate Method of
Range Class Failed"

I am stumped. I've tried a variety of things, like setting a range
variable equal to the current selection, then running the calculate
function on that range. Same error message. I have also read that
you may get this error message if the Range has no data. My range
has data, so that is not it.

Any help is greatly appreciated.

Dan
 
Does anyone know of a workaround other than turning off the Iterations
count?
Having Iterations and Manual Calc mode ON is a very useful combo in
many cases.
thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top