Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Quickly Update Range

Hi,
Probably the quickest way is to read the range into a variant
array, perform your calculations and transfer the variant array back to the
range.

A very simple emulation of your requirements for 30,000 rows and 50 columns
took less than 10 secs.

Is this performance acceptable?

HTH
"MDW" wrote:

What's the quickest, most efficient way to do something to every cell in a
range? I've got a range of cells, and I want to do one of the following
depending on user params:

1) replace every value with an apostrophe and the value (coercing it to a
text data type for Access import)
2) replace every value with the Val() of that value (replacing blank cells
with 0, again for Access import)

I'm conversant with the "For Each C In objR.Cells" loop, but I've got
20,000+ rows and this loop is taking too long.

Any other suggestions that would accomplish the same thing would be greatly
apperciated.
--
Hmm...they have the Internet on COMPUTERS now!

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
excel: monthly download of 1000 members, need to update quickly designermike Excel Worksheet Functions 2 October 18th 06 05:16 PM
Excel 2007 - How do I quickly update a chart using Source data? SWODoug Charts and Charting in Excel 2 June 12th 06 09:31 PM
How can i quickly mark a huge range, like A1 to DV3500? [email protected] Excel Discussion (Misc queries) 4 December 7th 05 08:23 PM
Update Range upon Load HartSA Excel Programming 1 July 23rd 04 08:51 PM
How update range after web query? Chris Shearer Cooper Excel Programming 2 May 10th 04 10:15 PM


All times are GMT +1. The time now is 11:09 AM.

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"