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
Post a Comment