最近需要做一个一劳永逸的XML文档生成,给项目内部专用的,直接VBA方便了,才第一次用.现学现卖了....抽时间还是系统的学习下这方面的知识吧 输出到UTF-8编码的XML文档.并且换行符是Unix的\n换行符. Sub WriteToXml() Dim FilePath As String Dim ClientID As String Dim Name As String Dim LastCol As Long Dim LastRow As Long Dim fso As FileSystem