Flippertje
Technical User
I have the following code:
open "C:\test.txt" for output as #1
for i = 1 to y
print #1, cells(y,1)
next
close #1
The idea is to print some rows to a text file. The last row of the textfile is always empty. Not because the last entry is emtpy but using print it seems to insert the rows in the new textfile rather than paste over the existing standard row.
Does anyone know how to delete this last row form Excel VBA or how to this antoher way so that the last row is not empty?
Many thanks!
Flippertje
open "C:\test.txt" for output as #1
for i = 1 to y
print #1, cells(y,1)
next
close #1
The idea is to print some rows to a text file. The last row of the textfile is always empty. Not because the last entry is emtpy but using print it seems to insert the rows in the new textfile rather than paste over the existing standard row.
Does anyone know how to delete this last row form Excel VBA or how to this antoher way so that the last row is not empty?
Many thanks!
Flippertje