Jul 24, 2001 #1 RobS23 Programmer Jun 4, 2001 161 GB How do I set up an ADO connection to an Excel Spreadsheet so that it it can be manipulated as would a db recordset?
How do I set up an ADO connection to an Excel Spreadsheet so that it it can be manipulated as would a db recordset?
Jul 24, 2001 #2 Niv3k Programmer Jul 11, 2001 350 US there is some information here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaxl10/html/xlproConnection.asp but it looks like a very complicated topic if you're not used to the Excel object model and ADO good luck Upvote 0 Downvote
there is some information here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaxl10/html/xlproConnection.asp but it looks like a very complicated topic if you're not used to the Excel object model and ADO good luck
Jul 24, 2001 1 #3 shaddow Programmer Mar 22, 2001 1,862 RO Use this... Const adOpenStatic = 3 Const adUseClient = 3 Const adLockPessimistic = 2 set rs=server.CreateObject("ADODB.Recordset" path=server.mappath("template.xls" Set EConnection = Server.CreateObject( "ADODB.Connection" ) EConnection.Open "Driver={Microsoft Excel Driver (*.xls)};DBQ="&path&";ReadOnly=0;UID=admin;" ________ George Upvote 0 Downvote
Use this... Const adOpenStatic = 3 Const adUseClient = 3 Const adLockPessimistic = 2 set rs=server.CreateObject("ADODB.Recordset" path=server.mappath("template.xls" Set EConnection = Server.CreateObject( "ADODB.Connection" ) EConnection.Open "Driver={Microsoft Excel Driver (*.xls)};DBQ="&path&";ReadOnly=0;UID=admin;" ________ George