读取xml数据的VBA基本脚本??学习这种方法的资源? [英] VBA basic script for reading xml data?? Resource for learning this method?
问题描述
所以我只是在寻找使用visual basic subs/scripts读取xml结构数据的基本示例.
So I was just looking for basic examples of reading xml structure data with visual basic subs/scripts.
具体来说,如果可能的话,我如何获取xml的结构数据,用一些vba读取数据,并将其放入excel电子表格中?
specifically, if possible, how can i take structure data of xml, read the data with some vba, and lay it into excel spreadsheets?
或者只是此类事情的学习资源.非常感谢!
or just a learning resource for this type of thing. thanks very much!
推荐答案
这三个主题将帮助您入门.
These three topics will help you get started.
1) 使用 MSXML加载 XMLa> 提示 - XMLDOC.Load ("D:\folder\yourXML.xml")
1) Load the XML using MSXML hint - XMLDOC.Load ("D:\folder\yourXML.xml")
2) 使用 XPath 或 XML 导航器
2) Read the data with XPath or XML navigator
3) 使用 Microsoft Excel 对象构建 Excel 电子表格模型
这篇关于读取xml数据的VBA基本脚本??学习这种方法的资源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!