|
-
August 2nd, 2005, 11:42 AM
#1
Most speedy way of reading data from excel
What is the most speedy way of reading data from excel ?
Is it possible to get data, formatting, etc... from a xls file without opening Excel?
Thanks...
-
August 2nd, 2005, 01:35 PM
#2
Re: Most speedy way of reading data from excel
The only way I know how to get data from excel with vb is to open excel and retreive data. I would think that it would be possible to read the file without opening and I would like to know how to do that too.
-
August 3rd, 2005, 01:21 AM
#3
Re: Most speedy way of reading data from excel
Once I downloaded a code which was getting excel data without opening excel, but it was'nt getting formatting, and if the first row was empty, it was returning null for the file, anyone has any ideas?
-
August 3rd, 2005, 05:32 AM
#4
Re: Most speedy way of reading data from excel
You can use ADO to read excel file, look for the connection string needed by ADO here
-
August 3rd, 2005, 07:20 AM
#5
Re: Most speedy way of reading data from excel
put a DATA1 control on form
set the property of DATA1 as shown below either design time or run time
data1.connect="Excel 5.0"
data1.recordsource=" filename with path"
data1.recordsource="xyz$"..............where 'xyz' is sheet name..
use of following string woluld give the data range of coloum 'x'
data1.recordset.fileds(x).............'0 for column1(A), 1 for column2(B)...and so on...
-
August 3rd, 2005, 11:02 AM
#6
Re: Most speedy way of reading data from excel
Does it work if we don't know the sheet name? I mean, if I want to read from the first sheet of the file..
Last edited by tanerpro; August 3rd, 2005 at 11:22 AM.
-
August 4th, 2005, 02:48 AM
#7
Re: Most speedy way of reading data from excel
i do not know how to call first excel sheet .but what is the use if we do not know the sheet or table name
******** what exactly you want to do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|