ASP读取EXCEL所有工作表名称
成功志
ASP读取EXCEL所有工作表名称
2011-11-17 ok12

ASP读取EXCEL所有工作表名称


<%Set adox = CreateObject("ADOX.Catalog")

Set conn = CreateObject("ADODB.Connection")

conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="& sExcelFilePath &";Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"""

adox.activeConnection = conn

for each table in adox.tables

if table.type="TABLE" then

%>

<%=table.name %>

<%

end if

next

%>

发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容