Hi to all,
Maybe someone helps me over here.
I have many xml files (in a format that Excel can read). Even when Excel can open those xml files, I would like to convert them from xml to xls or xlsx.
I've recorded the following macro that open an xml file and convert it to xlsx.
Is there a way to say to Excel that convert all xml files in folder to xlsx without open them?Sub XML_to_XLS() Workbooks.Open Filename:="C:\MyFolder\MyFile.xml" ActiveWorkbook.SaveAs Filename:="C:\MyFolder\MyFile.xlsx" _ , FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False ' End Sub
This because there are 5000 xml files to convert and open and saving files will take so long I think.
Many thanks in advance.
Regards.
Bookmarks