accessing an excel spreadsheet using VB

I want to be able to open and access the information in various cells in an Excel spreadsheet that I have. How do I go about this? Do I use the "Open ...For Input.." command? How do I get to a specific cell?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dim xlApp As excel.Application
Dim xlBook As excel.Workbook
Dim xlSheet As excel.Worksheet

Set xlApp = CreateObject("Excel.Application")
Set xlBook = xlApp.Workbooks.Add(filepath)
Set xlSheet = xlBook.Worksheets(1)
xlApp.Visible = True
Dim a
a = xlSheet.Cells(1, 1).Value

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JMaherAuthor Commented:
Thats great. Thanks. While I was waiting for someone to answer, I was playing with VisData (vb5) to try to open the worksheet that way. I was able to open it, but not able to use a SELECT query on it. VisData (and the Data control in my test app) said the name of the table was Database$ (even in the Query Builder), but when I wrote "SELECT * FROM Database$" I kept getting an error saying that the error in FROM clause. I have tried everything I can think of in the FROM clause, but cannot open the darn thing. Any other ideas?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.