Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default 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.



  #3   Report Post  
Posted to microsoft.public.excel.programming
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.




Reply
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
Code to create dbase file from text file? Hilton Excel Discussion (Misc queries) 0 October 9th 08 10:37 AM
Create text file Rob Excel Discussion (Misc queries) 4 June 1st 06 01:03 AM
How to create a UTF-8 text file from excel VBA mah_kum_70 Excel Discussion (Misc queries) 1 April 29th 06 10:12 PM
Can I use Excel to create this text file? BigIan Excel Worksheet Functions 4 September 15th 05 03:06 PM
Sort Filter & Create Text File Kevin R Excel Programming 1 February 7th 05 10:05 PM


All times are GMT +1. The time now is 11:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"