Sometimes range calculate doesn't work in macro. Why?

D

Don Wiss

I have applications in active use in my company that under macro control
just calculate a single cell, or a range. I figure that I don't need to
calculate the entire workbook when I don't need to. Usually this works
fine. Every once in a while it doesn't. Once a workbook gets into such a
state the only solution is to delete the range and do a calculate on the
entire workbook. The one I saw today, and which motivated me to post, there
was no other workbook open. Have others seen this? Any idea why?

We are using xl2002.

Don <donwiss at panix.com>.
 
G

Guest

I have many VBA macros that do the same range calculation. I have found that
in EXCEL versions 2000 and lower the macros work fine. In versions 2002 and
higher, the range calculation code generates a error code 1004 if calculation
is set to manual and if iterations are set.

As long as the range you need to calculate does not contain circular
references then you can fix the problem by turning off iterations.
 
G

Guest

I have many VBA macros that do the same range calculation. I have found that
in EXCEL versions 2000 and lower the macros work fine. In versions 2002 and
higher, the range calculation code generates a error code 1004 if calculation
is set to manual and if iterations are set.

As long as the range you need to calculate does not contain circular
references then you can fix the problem by turning off iterations.
 

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

Top