Hello,
I need to find a way to append my SQL server table with information coming from an Excel file. This needs to be done very frequently, so I need to give the user the ability to do it from an asp page.
Here's what to do in a general way :
#1 - In your asp page, create an excel application object like this :
Code:
<%
Dim ob_ExcelApp
Set ob_ExcelApp = Server.createObject("Excel.application")
%>
#2 - Then, open your xsl file in the previously created application
#3 - Get all infos you need in the cells of the xsl to put them in your DB.
For points #2 and #3, what I suggest is that you create a VBA macro in the Excel Application, run and test it under Excel and then get the VB code to adapt it to asp. Water is not bad as long as it stays out human body ;-)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.