VBA : Open XML file with XSL in Excel -


i open xml file vba language on excel, when it, xsl ignored. here code :

sub openfile() ' ' openfile macro ' name_file = application.getopenfilename("xml files (*.xml), *.xml") if name_file <> false     workbooks.open filename:=name_file end if ' end sub 

thank answers

you need use openxml method instead:

workbooks.openxml filename:=name_file, stylesheets:=array(1) 

Comments

Popular posts from this blog

javascript - React.js: onClick function from child to parent -

javascript - How to diff two immutable objects -

c# - How can I have the VS Debugger break in the correct location for exceptions thrown in Async methods in a Console App? -