Hello everyone
I have some code that transforms and XML to HTML using a style sheet. The transformation below works fine:
'Load the XML and the XSL (the stylesheet)
Set oXML = CreateObject("MSXML.DOMDocument")
Set oXSL = CreateObject("MSXML.DOMDocument")
oXML.Load "D:\some...
For completion sake, the entire code:
Sub XMLtoXLS()
Dim oXML, oXSL, filestr, Targetfolder
Dim sHTML, fso, FileName, MyFile
Dim xlApp, xlWbk
Const ForWriting = 2
Const TristateTrue = -1
Const xlNormal = 51
'Load the XML and the XSL (the stylesheet).
Set oXML =...
This is how far I can get from your input: I can create the html-file and write something to it. However, I don't know how to write the contents from the XML file to the newly created HTML using the style sheet.
Sub XMLtoXLS()
Const ForWriting = 2
Const TristateTrue = -1
Dim fso, MyFile...
Hello everyone
I need to transform an XML file to Excel. The style sheet (XSL) should be applied on import. There appears to be an acknowledged bug:
http://support.microsoft.com/kb/307230/en-US
The workaroudn involves converting XML to HTML first, then to Excel-format. The script is in VBA...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.