Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I written a macro to read in line by line multiple CSV files of varying lengths. Can anyone suggest a faster way in terms of runtime execution time to speed this code up? ie. I thought of reading in multiple lines in bulk to reduce I/O but VBA doesn't seem to have a bulk read mode. Basically i do the following: Dim columnArrays as Variant Dim newColumnArray as Variant .. .. Do until EOF(inputFile) Line Input #inputFile, inputLine columnArray = Split(inputLine, ",") ....merge/massage/apply functions to certain columns in columnArray and copy into newColumnArray for i = 0 to Ubound(newColumnArray) aRange.Offset(0,i).Value = newColumnArray(i) next i set aRnage = aRange.Offset(1,0) Loop Thanks to everyone for their valuable insights. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Populate Adjacent Cells based on Pull Down Selection | New Users to Excel | |||
Populate Adjacent Cells based on Pull Down Selection | New Users to Excel | |||
transpose array of non-adjacent cells | Excel Worksheet Functions | |||
Any quicker ideas? | Excel Programming | |||
Need to randomly populate a 10x10 array of cells with 100 names - 5 people listed 20 times each... | Excel Programming |