Processing time to set values

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

Guest

Hi all,

I'm running a macro to set some values for a long list (18,000 entries) of
data. Everything is working fine, but I'm finding that Excel takes a long
time to enter the two new pieces of data that I'm telling it to. The
calculation happens almost right away, but printing the results takes about a
second. I've tried two ways, and they both take about the same amount of
time. Here's what I've tried:

ActiveSheet.Range("AF" & activerow) = TimeBack
'ActiveCell.Offset(0, 1).Value = TimeBack
ActiveSheet.Range("AG" & activerow) = row
'ActiveCell.Offset(0, 2).Value = row

Any suggestions for a method that would be quicker?

Thanks,

Eric
 
I'll reply to my own question - the spreadsheet is pretty large, and it was
the automatic calculation that was slowing it down. Even though nothing was
based on the cells I was changing, I guess Excel has to check to make sure.
When I turned calculation to automatic, it went much more quickly.

Eric
 

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