Solved

Excel 8 Object library custom control

Posted on 1998-10-01
4
506 Views
Last Modified: 2012-06-21
When I select "Excel 8 object library" under the custom controls, VB searches for Excel.exe. Should'nt VB be looking for an .ocx file in the Windows System directory?

If so, can you tell me the file name?
0
Comment
Question by:ncw
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
clifABB earned 60 total points
ID: 1437678
Actually, what it needs is Excel8.olb, but it may have been checking to make sure that Excel exists because it *is* required.

There is no Excel ocx.  What you were clicking was in References (as opposed to Components).

Adding references allow you to access external applications from within VB using VB syntax.
0
 
LVL 1

Author Comment

by:ncw
ID: 1437679
I've found Excel.olb in the Office directory, but when I selected it under browse in the custom controls selection dialog VB4 32bit said unable to load.

If I 'tick' 'Microsoft Excel8 Object Library' in the list it searches then returns an error message "out of memory" - the PC has 32MB and I've had the same responce from one with 64MB of RAM.

Any clues?
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1437680
Excel.olb is *not* a custom control.  It is a reference library to Excel's exposed objects.

From within VB, select menu option Project/References.  Scroll down the list until you see Microsoft Excel 8.0 Object Library.
Check the box next to that item and click OK.
Then (still within VB) select menu option View/Object Browser (or press F2).
In the screen that appears, select 'Excel' in the top dropdown list box in the top left of the screen.
0
 
LVL 1

Author Comment

by:ncw
ID: 1437681
Ok I got it, its *not* a control - what confused me was that Excel 8 object library appears as an option under 'custom controls' menu option (VB4 32bit). Only Excel 5 appears under 'references'.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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…
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…

743 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

12 Experts available now in Live!

Get 1:1 Help Now