Solved

Read from Excel

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 54
Add a task in Outlook from access 11 39
SLMGR Switches Are Not Working On KMS Host 3 92
How to compare ms sql hashbytes results within vb6 5 74
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

773 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