LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default How do you send data to the same row of a text file everytime?

Hi Bernard,

Someone might be able to answer your question to do this but if not then I
would give consideration to writing it to another Excel workbook with only
one worksheet and then Save the Excel workbook as a text file. The workbook
could become the master and just overwirte the text file each time.

--
Regards,

OssieMac


"Bernard" wrote:

All,
How do I output to the same position in a Text file everytime? I want to
output data for a given Date so I'd like to put it in the same row for that
Date everytime, and so overwrite the existing data in that row?

I use the following command:
Write #10, dateline, variable1, variable2, variable3
'where dateline is today's date in excel date code.
I drop into the file at the row corresponding to last week's date e.g. row
40010.
Write #10, dateline+1, variable1, variable2, variable3
'where dateline +1 is tomorrow's date in excel date code.
I drop into the file at the row corresponding to today's date e.g. row
40017.

I want to be able to open my text file, overwrite the existing data in that
file for the row corresponding to today's date. Is it possible to write to a
specific row in a text file..... ?
thanking you
Bernard

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel crashes everytime I send focus from control to worksheet Daves_Solutions[_2_] Excel Programming 2 June 11th 06 05:02 PM
Send worksheet to text file mtlpp[_3_] Excel Programming 1 June 3rd 05 11:02 PM
Possible to write VBA code to send out an EMAIL everytime a workbook is opened? Marcello do Guzman[_2_] Excel Programming 4 September 2nd 04 07:59 AM
send contents of cell b4 to a plain text file lothario[_68_] Excel Programming 5 January 22nd 04 09:37 AM
How do I send some cells to an external text file? lothario[_2_] Excel Programming 1 October 12th 03 02:34 PM


All times are GMT +1. The time now is 12:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"