Y
Ying
Does anyone know if it's possible to add a new text file
and name it in Excel using VBA?
Thanks!
and name it in Excel using VBA?
Thanks!
Ying said:Does anyone know if it's possible to add a new text file
and name it in Excel using VBA?
...Sub INSERTSUBNAME()
Dim fs, f
OutFile = INSERT NAME HERE (ie "C:\TEMP\mymatrix.txt")
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.OpenTextFile(OutFile, 2, -2)
f.Close
Set f = Nothing
Set fs = Nothing
End Sub