Convert HTML File to Excel

If you want to Convert HTML File to Excel and open Excel, you can convert HTML file to Excel if you run the code block below with Run CMD.

"$xlSLSXType  = 51 ; 
$xl = New-Object -ComObject Excel.Application; $xl.Visible = $false; 
$wb = $xl.Workbooks.Open('C:\Users\user\Desktop\Google.html'); 
$xl.ActiveWorkbook.SaveAs('C:\Users\user\Desktop\html-to-excel.xlsx',$xlSLSXType,$missing,$missing,$missing,$missing,$missing,$missing,$missing,$missing,$missing,$missing); 
$xl.Quit()"