当前位置: 代码迷 >> VBA >> Excel_VBA 写资料
  详细解决方案

Excel_VBA 写资料

热度:1639   发布时间:2013-02-26 00:00:00.0
Excel_VBA 写文件
Function saveRecordsToTxt(ByVal records As String, ByVal path As String) As Boolean '写文件
If isNullOrEmpty(path) Then
    saveRecordsToTxt = False
End If

Open path For Output As #1
Print #1, records
Close #1
saveRecordsToTxt = True
End Function