S
stephen.mason
Hi,
I have a file of coordinates which correspond to the vertices of line
segments. I'd like to read this into visio using a macro which would
then create the appropriate drawing. I have code to do the actual
drawing but am stuck trying to read the data. Visio help gives the
following example:
Sub OpenTextFileTest
Const ForReading = 1, ForWriting = 2, ForAppending = 3
Dim fs, f
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.OpenTextFile("c:\testfile.txt",
ForAppending,TristateFalse)
f.Write "Hello world!"
f.Close
End Sub
However, this doesn't work and comes up with run time error '438'
Object doesn't support this property of method. Can anyone help?
I have a file of coordinates which correspond to the vertices of line
segments. I'd like to read this into visio using a macro which would
then create the appropriate drawing. I have code to do the actual
drawing but am stuck trying to read the data. Visio help gives the
following example:
Sub OpenTextFileTest
Const ForReading = 1, ForWriting = 2, ForAppending = 3
Dim fs, f
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.OpenTextFile("c:\testfile.txt",
ForAppending,TristateFalse)
f.Write "Hello world!"
f.Close
End Sub
However, this doesn't work and comes up with run time error '438'
Object doesn't support this property of method. Can anyone help?