I need to be able to insert a row in an Excel file at a specific row number. So far, I have the query:
insert into OPENROWSET ('Microsoft.ACE.OLEDB.12.0','Excel 12.0;Database=C:\Test.xls;','SELECT * FROM [Feuil1$]')
SELECT * FROM OPENQUERY(ExcelServer2, 'SELECT * FROM [Feuil1$]') WHERE [BIP] = '967046'
This query insert a row at the end of the Excel spreadsheet. Now, I need to be able to insert a row anywhere I want in the Excel. This file is a master Excel file, used by several users. I can't import the whole file in a table, insert the row where I need and export the table back to the Excel.
So, is there a way I can do this?
thanks a lot