View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
RAFAAJ2000[_2_] RAFAAJ2000[_2_] is offline
external usenet poster
 
Posts: 75
Default How to create a Text File ?

Thanks Harald,

That was easy :)

Regards.


"Harald Staff" wrote:

Hi nameless boy

Sub test()
Open "C:\Temp\JustAnotherTextfile.txt" For Output As #1
Close #1
End Sub

Note that code does nothing else and does not follow best practices of code
writing. Demo only.

HTH. Best wishes Harald

"RAFAAJ2000" skrev i melding
...
I know how to read & write to a Text File but not how to create it via

code.
Any thoughts .

Regards.