View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Steve Garman Steve Garman is offline
external usenet poster
 
Posts: 107
Default How to print current data and time to text file

Are you looking for somethig like this?

Sub test()
Dim ff As Integer, timDat As String
ff = FreeFile
Open "c:\test.txt" For Append As ff
timDat = Format(Now, "dd mmm yyyy, hh:mm:ss")
Print #ff, timDat
Close ff
End Sub

Dayanand wrote:

Hi All,
Any body can guide me How to print current data and time to text file in Visual Basic..?

Regards
Dayanand