Hiding calculations

  • Thread starter Thread starter MPR Suporte
  • Start date Start date
M

MPR Suporte

Hello,

I wrote a procedure that makes some calculations in a range of cells like
this:

for intnum= 1 to 100
ActiveCell.FormulaR1C1= "=sum(RC[-3]:RC[-1])"
....
....
ActiveCell.Offset(1,0).Select
NExt intnum

The issue is I do no want to see all the cell movements and calculations
during the loop, only the result at the end of the process.

How can I hide the processing of the loop, and then turn it on again.

Thanks in advance
Cesar
 
Hi Cesar,

Precede the code with

Application.Screenupdating = False

and reset it with = True at the end.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
change your code to

ActiveCell.Resize(100,1).FormulaR1C1 = "=sum(RC[-3]:RC[-1])"
 

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