E
Ed
I'm parsing a huge text file into several smaller files. I capture
the portion I want to make into a new file in a string, open a
TextStream object, and write the string plus a bit more. (Code is
below.) At certain points in the new file, I would like to insert a
page break. I'm thinking I would have to use something like InStr to
find the bit that marks a new page, then insert the break into the
string at that point. But can you do that in a string? Or is there
another way to put a page break in a TextStream file?
Ed
Set docNew = fs.CreateTextFile(strNewDoc)
docNew.Write (strNew & vbCr & vbCr & _
"This file created from archive files on " & _
Format(Now, "dd mmm yyyy"))
the portion I want to make into a new file in a string, open a
TextStream object, and write the string plus a bit more. (Code is
below.) At certain points in the new file, I would like to insert a
page break. I'm thinking I would have to use something like InStr to
find the bit that marks a new page, then insert the break into the
string at that point. But can you do that in a string? Or is there
another way to put a page break in a TextStream file?
Ed
Set docNew = fs.CreateTextFile(strNewDoc)
docNew.Write (strNew & vbCr & vbCr & _
"This file created from archive files on " & _
Format(Now, "dd mmm yyyy"))