Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am kind of having to load a 'range' of cells into a dataset with an instance of workbook that i have created. Is there a possibility that I do it? For eg. Dim objExcel As New Excel.Application Dim objWorkbook As Excel.Workbook objWorkbook = objExcel.Workbooks.Open"C:foo.xls") Dim objSheet1 As Excel.Worksheet = objWorkbook.Worksheets("Sheet1") ... ' Do some operations in the cells in the worksheet ... Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=<THIS IS WHERE I WANT TO GIVE A RANGENAME FROM objWorkBook;Extended Properties=Excel 8.0;" ... load the data into dataset etc. Dim objCmdSelect As New OleDbCommand("SELECT * FROM RangeName", objConn) Any ideas? Thanks in advance, Sriram |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
clear cells when workbook is opened | Excel Discussion (Misc queries) | |||
Set up Excel to start new instance for each new file opened. | Excel Discussion (Misc queries) | |||
Excel range into a vb.net dataset.... | Excel Programming | |||
How to see if the opened workbook is opened by another user ? | Excel Programming | |||
Excel ADO connection opens read-only instance of opened Excel | Excel Programming |