Quick Question

G

Guest

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top