|
-
Nov 22nd, 2000, 04:52 AM
#1
Thread Starter
Member
Hai,
Any one know how to read data from an excel sheet from vb.
Thanks
Karun
-
Nov 22nd, 2000, 05:10 AM
#2
Hyperactive Member
just a guess...
...but when i was reading about ADO, MS made a big deal about being able to read from different data sources. They gave Emails as an example, and seeing that spreadsheets must be more of a structured format than most emails, i imagine its possible.
Maybe worth searching microsofts site for "ADO excel" or something?
-
Nov 22nd, 2000, 07:48 AM
#3
Junior Member
Add MS Excel Object Library to your Project References.
Code:
Workbooks.Open FileName:="C:\YourFile.xls"
Workbooks.Application.Visible = True 'False to hide Excel from the user
SomeValue = Range("A1").Text
SomeOtherValue = Range("B1").Text
Workbooks.Application.Quit
Workbooks.Application.DisplayAlerts = False
Hope this helps!
-
Nov 22nd, 2000, 06:11 PM
#4
Fanatic Member
If it is Tabular, you can also use the data control.
Chemically Formulated As:
Dr. Nitro
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
|