Solved

Read from Excel

Posted on 2000-03-07
4
161 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
  • 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

706 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now