I\'m trying to use Excel VBA to write to a text file. I\'m doing a few of these:
MyFile1 = \"C:\\outputFromExcel1.txt\" fnum1 = FreeFile() Open MyFile1 For
You can use Close #fnum1 to close the file handle and it should flush the remaining buffer contents.
Close #fnum1