怎么将VBS读出的数据写到HTML

来源:百度知道 编辑:UC知道 时间:2024/06/05 00:02:29
我现在写一个HTML,里面调用了一个VBS
Set ExcelApp = CreateObject("Excel.Application") '创建EXCEL对象
Set ExcelBook = ExcelApp.Workbooks.open("C:\Users\wangzim\Desktop\computer list 080923.xls")'path
Set ExcelSheet = ExcelBook.Worksheets(1) '工作表
msgbox ExcelSheet.Range("A1").Value '读取要的 格子的数据

ExcelApp.ActiveWorkbook.Close '关闭打开的EXCEL.EXE
ExcelApp.quit
Set ExcelApp= Nothing
Set ExcelBook= Nothing

现在读出了 A1的数据我想把他写到HTML的 段落<p></p>中
怎么写?

直接 response.write("<p>"&ExcelSheet.Range("A1").Value &"</p>")

<input type=button value="Click me" onclick="document.getElementById('123').innerText='Hello'">
<p id="123"></p>