I am trying to convert multiple .xml files in my folder to .xlsx files. I have over 100 files and it would be tedious to manually save as each file as .xlsx. So I thought of using a macro. The code here only runs for a specific file, how do I make it work for all the files in my folder.
Sub macroconvt()
'
' macroconvt Macro
'
'
ChDir _
"S:\Research and Analysis\Interns\2016\Summer\New RCA Macro\Layout files\converted excel files"
ActiveWorkbook.SaveAs Filename:= _
"S:\Research and Analysis\Interns\2016\Summer\New RCA Macro\Layout files\converted excel files\FIRM_Limit Excessive Hours_19JUL16.xlsx" _
, FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
End Sub
Thank you