![]() |
Quick Question
Using the help menu from excel im trying to create a simple text file using
the following: Sub CreateAfile Set fs = CreateObject("Scripting.FileSystemObject") Set a = fs.CreateTextFile("c:\testfile.txt", True) a.WriteLine("This is a test.") a.Close End Sub I have several named cells which Im trying to use to generate the text file in the following format: " First_named cell " & " " & "Second_named cell" &" "& Third &" " & "Fourth" |
Quick Question
OK, I got it solved
Thanks "N.F" wrote: Using the help menu from excel im trying to create a simple text file using the following: Sub CreateAfile Set fs = CreateObject("Scripting.FileSystemObject") Set a = fs.CreateTextFile("c:\testfile.txt", True) a.WriteLine("This is a test.") a.Close End Sub I have several named cells which Im trying to use to generate the text file in the following format: " First_named cell " & " " & "Second_named cell" &" "& Third &" " & "Fourth" |
All times are GMT +1. The time now is 11:47 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com