Solved

Read from Excel

Posted on 2000-03-07
4
167 Views
Last Modified: 2010-05-02
Is there a way to make VB read whatever is in Excel and posting it onto a form. After reading it can it save it on an Access database by a click of a button??
I need the answer ASAP please.

Any help is appreciated thanks!
0
Comment
Question by:hello_200
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Accepted Solution

by:
mbarreto022800 earned 25 total points
ID: 2595385
Here's a small example:

Dim Excel As New Excel.Application

Excel.Workbooks.Open "C:\ola.xls"
Excel.Application.Visible = False

MsgBox Excel.Application.Cells(1, 1).Value
0
 

Expert Comment

by:mbarreto022800
ID: 2595397
By the way you will need the Microsoft Excel 8.0 Object Library on your project (I'm not sure if there is a difference between versions).
0
 

Author Comment

by:hello_200
ID: 2607050
It is giving me an error message
"Invalid outside procedure"..plus the results will appear on a msgbox can't i put them in a text box?
0
 

Author Comment

by:hello_200
ID: 2607225
I have followed a different way of reading the information from excel and putting them in textboxes.
But thanks for your help!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question