Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm writing code that creates quite a few thousand records and
ultimately saves them into a TXT file. In some scenarios, my record count exceeds the Excel row limit of 65,536. In these cases, of course, I need to dump some of the records out of Excel into the text file so that I don't overflow. I have no problem saving the first set of records into the text file. What I am wondering is if anybody has any ideas as to how I can append the second set of records onto the same text file. Let's say that my procedure creates 70,000 records. My algorithm might look like this: For x = 1 to 3500 'create 1st record set Next ActiveWorkbook.SaveAs Filename:=OutputFile, FileFormat:=xlText For x = 35001 to 70000 'create 2nd record set Next 'Append data to first .txt file - This is where I am stuck Is there a way to write these records into the text file without bringing it back into Excel? I tried using Word, but it was prohibitively slow and I don't know much about VBA in Word. I could use Access, but nobody in our office besides me has any experience in Access and this will be a shared app, so I'm trying to keep it as simple as I can. Thanks, Randy Eastland |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help for excel macro ( to append records) | Excel Discussion (Misc queries) | |||
how do i append records to an excel spreadsheet | Excel Discussion (Misc queries) | |||
Append Excel Sheet from constantly updating delimited text file | Setting up and Configuration of Excel | |||
Append text file | Excel Discussion (Misc queries) | |||
use macro to append records to worksheet | Excel Programming |