![]() |
How to create a Text File ?
I know how to read & write to a Text File but not how to create it via code.
Any thoughts . Regards. |
How to create a Text File ?
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. |
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. |
All times are GMT +1. The time now is 12:21 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com