LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default automatic file name

Hi

I have one problem with excel:
my data are beeing colected real time and from time to time I want to
backup them. I made such thing:


Dim ff as Integer
ff = FileFree()
Lastrecord = 1000
FirstCol = 1
LastCol = 5

Open "C:\arch\backup.txt" For Append as ff
for r = 5 to Lastrecord
for C = FirstCol To LastCol
if C=1 Then
Print #ff, Format(Cells(r,C), "yyyy-mm-dd") &
vbTab;
Elseif C = 2 Then
Print #ff, Format(Cells(r,C), "hh:mm:ss") & vbTab;
Else
Print #ff, Cells(r,C) & vbTab;
End if
Next C
Print #ff;
Next r
Close ff


The only thing is how to force excel that each time Export procudure is
call the name of the file (backup.txt) different?! :)
thanks for help ;)

 
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
AUTOMATIC FILE SAVING pravin New Users to Excel 6 July 9th 09 06:53 AM
Creating automatic log file SeanD Excel Discussion (Misc queries) 0 February 6th 07 08:20 PM
Automatic File Saving smoran Excel Discussion (Misc queries) 1 October 4th 05 07:37 PM
Automatic File Name from Templates alanford Excel Programming 2 February 16th 05 01:37 PM
Automatic update of links in destination file when source file mo. Brucgil Excel Discussion (Misc queries) 0 December 2nd 04 04:07 PM


All times are GMT +1. The time now is 05: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"