Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to open Excel spreadsheet in ASP

Status
Not open for further replies.

donishere

Programmer
May 7, 2002
101
What's the ASP/VBA command to open an Excel spreadsheet?
 
This will open an excel spreadsheet:

Code:
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
           "Data Source=c:\somepath\mySpreadsheet.xls;" & _
           "Extended Properties=""Excel 8.0;HDR=Yes;"";"
Where "HDR=Yes" means that there is a header row in the cell range
(or named range), so the provider will not include the first row of the
selection into the recordset. If "HDR=No", then the provider will include
the first row of the cell range (or named ranged) into the recordset.

There are several different methods for actually using the spreadsheet here is a link with a lot more info:


Hope it helps.
Have fun.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top