ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to print current data and time to text file (https://www.excelbanter.com/excel-programming/299957-how-print-current-data-time-text-file.html)

Dayanand

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

Regard
Dayanand

Frank Kabel

How to print current data and time to text file
 
Hi
what do you mean with 'print ...to text file'?

--
Regards
Frank Kabel
Frankfurt, Germany


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

Regards
Dayanand



Steve Garman

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



All times are GMT +1. The time now is 02:54 PM.

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