Hi,
I have approximately 80 HMTL files that I need to convert to excel files. I can come up with code to open the HTML and save it again but ending in .xls instead of .html (see below) but I would have to input this code for every HTML file. Is there a way to do this for all 80 files in one go without repeating this code?
Many thanks!
Application.DisplayAlerts = False
Workbooks.Open Filename:="filepath\file a.html"
ChDir _
"filepath"
ActiveWorkbook.SaveAs Filename:= _
"filepath\file a.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWorkbook.Close False
I have approximately 80 HMTL files that I need to convert to excel files. I can come up with code to open the HTML and save it again but ending in .xls instead of .html (see below) but I would have to input this code for every HTML file. Is there a way to do this for all 80 files in one go without repeating this code?
Many thanks!
Application.DisplayAlerts = False
Workbooks.Open Filename:="filepath\file a.html"
ChDir _
"filepath"
ActiveWorkbook.SaveAs Filename:= _
"filepath\file a.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
ActiveWorkbook.Close False