Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,670
Default Processing time to set values

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,670
Default Processing time to set values

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

"Eric" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Processing taking a really long time SS Excel Discussion (Misc queries) 2 March 17th 09 02:19 PM
Extreme, time-consuming processing GARY Excel Discussion (Misc queries) 0 February 25th 08 03:24 PM
Converting date/time serial values to cumulative time totals... Kevin B Excel Discussion (Misc queries) 4 October 18th 07 05:05 PM
How to measure time for processing periods? Eric Excel Discussion (Misc queries) 6 August 15th 07 12:48 PM
Processing Time [email protected] Excel Worksheet Functions 0 July 20th 07 06:52 PM


All times are GMT +1. The time now is 11:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"