'엑셀연결
Set xlDb = Server.CreateObject("ADODB.Connection")
connectString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & UpExcelFile & "; Extended Properties=Excel 8.0;"
xlDb.Open connectString
Set oADOX = CreateObject("ADOX.Catalog")
oADOX.ActiveConnection = connectString
'시트명출력
For Each oTable in oADOX.Tables
Response.Write oTable.Name & "<br>"
Next
oADOX.ActiveConnection = connectString
'시트명출력
For Each oTable in oADOX.Tables
Response.Write oTable.Name & "<br>"
Next
'Study > ASP&PHP' 카테고리의 다른 글
[ASP] 페이지 이동없이 값 넘겨 처리하기 (0) | 2013.01.23 |
---|---|
[ASP] 구글 SMTP를 이용한 메일 발송방법 (0) | 2013.01.23 |
[ASP] 엑셀로 출력시 시트명 지정하기 (0) | 2011.09.06 |
[ASP] 특정 날짜 이후 실행. (0) | 2010.08.05 |
[ASP] DB 필드명 뿌리기 (0) | 2010.08.05 |