我用这样的方法往文件里面写
fnum = FreeFile()
openfile = "d:\test.txt"
Open openfile For Append As #fnum
Print #fnum, rst.Fields.Item(0)
为什么第一次执行时只建了一个空的文件,第二次执行后才写进了内容?
另外怎样输出才能使test.txt具备一定的格式
fnum = FreeFile()
openfile = "d:\test.txt"
Open openfile For Append As #fnum
Print #fnum, rst.Fields.Item(0)
为什么第一次执行时只建了一个空的文件,第二次执行后才写进了内容?
另外怎样输出才能使test.txt具备一定的格式
——我是菜鸟,笨方法。
用录制宏的方法,查看某种Word操作的脚本,
再在VB工程菜单中引用Microsoft Word Library 9.0,用创建对象方法CreateObject(),
将宏中的语句Copy过来,几乎直接就可以用了。