ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   End of file marker from Text File - Delete? (https://www.excelbanter.com/excel-programming/296748-end-file-marker-text-file-delete.html)

43fan

End of file marker from Text File - Delete?
 
How can I get rid of an EOF marker that's in an imported text file? The
text file is created from within a FPD2.6 program, which automatically puts
the EOF marker/code there. When Excel opens it, of course it just shows up
like a little box. This won't always be in the same row, although will
always be in the same column.

Is there a way to eliminate this using VBA? I open the text file, then copy
the data into another spreadsheet. I have no way of knowing the number of
"records" that will be copied, so I just copy the entire sheet.

Thanks!
Shawn




All times are GMT +1. The time now is 10:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com