LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Array question

I have a macro that processes a text file, reading data one line at a time.

Originally I did 2 "passes" on the file, the first step merely established
the number of lines in the file so that I could use a progress indicator on
the next pass through the file where I did my actual processing.

Then I got the bright idea that instead of opening and closing the file
twice I only needed to do it once and could save considerable processing
time. I would open the file, and pass each line to an arrayed variable.
After establishing the mumber of lines I would then access the array data
instead of opening the file again.

To my surprise this ended up saving virtually no time at all. Can anyone
explain this ?


 
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
array question Mona Excel Discussion (Misc queries) 2 March 23rd 10 08:41 PM
another array question Robert Dieckmann Excel Worksheet Functions 5 January 20th 07 02:08 AM
vba array question chick-racer[_30_] Excel Programming 4 November 10th 03 05:59 PM
array question john petty Excel Programming 1 August 29th 03 04:57 PM
Is this an array question? Stuart[_5_] Excel Programming 0 August 5th 03 08:53 PM


All times are GMT +1. The time now is 05:19 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"