View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Christmas May[_2_] Christmas May[_2_] is offline
external usenet poster
 
Posts: 63
Default file append & opposite #2

Group,

I've written some VBA code to add some data to a file using something
similar to:

open "c:\temp\junk.txt" for append as #1

I now wish to write some code to remove this data.

Example: The file starts out as 23,847 bytes and my macro makes it 23,857
bytes. What code would move the EOF up ten bytes restoring the file as it
originally was?

Thanks in advance,

Christmas