简体   繁体   English

使用VBA将HTML报表导入Excel

[英]Importing HTML Report into Excel Using VBA

When you right-click an html document (.html) and open as "Excel", Excel will open up and retain the html appearance in the sheet. 右键单击html文档(.html)并以“ Excel”打开时,Excel将打开并在工作表中保留html外观。

I am trying to write VBA code to import an HTML file (.html) into the worksheet while retaining the HTML look. 我试图编写VBA代码以将HTML文件(.html)导入工作表,同时保留HTML外观。 (I do not want the html code to appear in the sheet). (我不希望HTML代码出现在工作表中)。

How would I achieve this? 我将如何实现?

Thanks 谢谢

Dim wb as excel.workbook
set wb = workbooks.open("C:\test_file.html")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM