defining and initializing objects

How can i define the Objects below.
I am using those Object in a function parse an excel sheet into access databae.

Dim objExcel As Excel.Application
Dim objWorkBook As Excel.Workbook
Dim objWorksheet As Excel.Worksheet
Dim worklistsheet As Excel.Worksheet
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.

Go through the following link. It gives a clear method of using the various excel objects

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
There is another way to do this; query the excel sheet as you would any other data source. You need a driver (like with any other database) and you can query it using standard sql. Then just iterate through your dataset and create insert statements for your destination database.

This covers the idea, im sure there are plenty of VB.NET examples around as well....

Don't forget you have to reference the Excel object library before you can use those objects.

References/add reference, choose the COM tab, and locate the microsoft Excel X.X object library
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.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.